ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ')' at line 1

The sql is: SELECT t.id,t.name,t.pid FROM destination t WHERE t.pId in(763,764,765,1312) and t.id in()

in /home/data/51code/20181018/lib/dao/dao.class.php on line 294, last called by /home/data/51code/20181018/lib/dao/dao.class.php on 460 through function query.