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 ') ORDER BY `it`.`id` LIMIT 1' at line 1
SELECT DISTINCT `it`.* FROM vp_stars `it` WHERE (1) AND (`it`.`id` > ) ORDER BY `it`.`id` LIMIT 1