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 '-8, 24' at line 1SELECT DISTINCT icon_id, icon_title FROM icon,uploads WHERE icon_ip_id='4403' AND icon_can_show='1' AND icon_id=up_s_id AND up_s_type='icon' ORDER BY icon_title LIMIT -8, 24