Insted;
SELECT * FROM payments WHERE user_id = 1 ORDER BY created_at DESC LIMIT 1,1
Help me convert this into PDO Statements.
Insted;
SELECT * FROM payments WHERE user_id = 1 ORDER BY created_at DESC LIMIT 1,1
Help me convert this into PDO Statements.
I would do something like
print_r($query);
now you will see the sql
go to phpmyadmin or mysql and place your sql
usually its an error of sql statement
