Неверный запрос:

SELECT `t`.* FROM ( SELECT `o`.`key` `option`, `o`.`vals`, `so`.`value` FROM `site_options` `so` LEFT JOIN `options` `o` ON `so`.`idoption`=`o`.`id` WHERE `so`.`idsite` IN (11, 0) ORDER BY `so`.`idsite` DESC ) `t` GROUP BY `t`.`option`

Access denied for user ''@'localhost' (using password: NO)