lay so ban ghi select count(*) from `tbloaitin` where loaitin_pid = and loaitin_id != 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 loaitin_id !=' at line 1