time_list.php - L-13 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 client_id<>)=0' at line 2 SQL:SELECT id FROM dic_route_base_time t1 WHERE (SELECT COUNT(*) FROM dic_route_base WHERE IFNULL(index1,0)=0 AND DATE(visit_date)='' AND ABS(TIME_TO_SEC(TIMEDIFF(TIME(visit_date), t1.id))/60)<15 AND base_id= AND client_id<>)=0