I have this SQL Query which I want to sanitize:
SELECT * FROM navigation_$cat ORDER BY parent ASC, prio ASC
The problem is that I can't get the $cat sooner because it's being send via AJAX, and indicates which database needs to be accessed. How can I create a PDO statement that is safer than simply putting a string together?