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 'LIMIT 0, 12' at line 1
SELECT * FROM html WHERE type='albumdetailtmp' and class_id= LIMIT 0, 12中国女人FREEXXXX性