Improve performance: when there aren't fields use PDO::query instead of PDO::prepare