Updated SQL statement

Agh, missed one of the SQL search arguments