SELECT * FROM issue_image_item
LEFT JOIN article ON article_id = item_id
WHERE img_iss_item_id = AND item_type = 2You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND item_type = 2' at line 3