$connection = new \PDO($params);
$statement = $connection->prepare(
"SELECT field1,field2,fieldN FROM tableName WHERE field2 = :param1 AND field1 = :param2"
);
$statement->bindValue("param1", "blblabla", \PDO::PARAM_STR);
$statement->bindValue("param2", 100500, \PDO::PARAM_INT);
$statement->execute();
$list = $statement->fetchAll(\PDO::FETCH_ASSOC);