Invalid SQL: SELECT pjId FROM projects WHERE CONCAT(pjName, ' ', pjLocation)=''+$(this).data('video')+''