I have a request like this.
"SELECT *
FROM st_items
WHERE item_id < " . $_POST['id'] . "
AND item_board=" . $_POST['board'] . "
ORDER BY item_id
DESC LIMIT {$itemLoad_limit}"
WHERE item_id < " . $_POST['id'] . " It works as it should.
But when I add AND item_board=" . $_POST['board'] . "
I have a Fatal error.
Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column '' in 'where clause''
Can you help me figure out what the problem might be?