Fixed PDO query generation
Fixed PDO query generation