We have an error
SELECT * FROM ( SELECT * FROM site_organize WHERE site_id = "5" AND page = "home" UNION SELECT * FROM site_organize WHERE site_id = "0" AND page = "home" ) AS o GROUP BY type ORDER BY row ASC
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'o.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by