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 ad_state=1 and ad_sort='4' order by paixu desc limit 0,2' at line 1
select * from sstc_selectads where selectindustry_id= and ad_state=1 and ad_sort='4' order by paixu desc limit 0,2