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 id != 656999 order by gssj desc' at line 1
select * from company_project where company_id = and id != 656999 order by gssj desc