Error while executing query (SELECT fileblob, filetype, filename FROM library l INNER JOIN websites w ON l.id = w. WHERE website_id = 19 LIMIT 0, 1 ) . Error #: 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 'WHERE website_id = 19 LIMIT 0, 1' at line 1