Некорректный запрос к БДYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `unit`.`surname` = '' GROUP BY `unit`.`id`' at line 18