All SQL_query to PDO fixation.