Fix multiple SQLi vulnerabilities
few changes
Fix retrieving posts by using PDO
multiple SQLi fixes. move to PDO.
few changes
Merge branch 'sqlifix'