PDOException: 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 ')

AND location.location_id IN (
SELECT location_id
FROM intake
WHERE 
int' at line 4 in /home/staging/public_html/core/Data.class.php:422
Stack trace:
#0 /home/staging/public_html/core/Data.class.php(422): PDO->query('SELECT * FROM l...', 2)
#1 /home/staging/public_html/site/courses/locations/logic.php(76): Data->query('SELECT * FROM l...', 2)
#2 /home/staging/public_html/core/Action.class.php(179): require('/home/staging/p...')
#3 /home/staging/public_html/index.php(60): Action->call(NULL)
#4 {main}