ERROR: Could not able to execute SELECT posts.*, users.*
JOIN users ON posts.userid = users.id
WHERE users.id =
AND type != 'delete'
ORDER BY posts.postcreated_at DESC. You 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 type != 'delete'
ORDER BY posts.postcreated_at DESC' at line 5