Can not find db table( social_2014 ) or wrong query ( select * from inner_branch where indexcode != order by indexcode desc ). 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 indexcode desc' at line 1