BenGriffiths/pdo-mysqli-pagination — pull request #3 by damonsk (2012-10-06 23:26:54+00:00)
Title: White space before select statement breaks query. 

If a query has any whitespace before SELECT, the substr_replace call in prepare_query fails.

````php
$this->query = substr_replace($this->query, 'SELECT SQL_CALC_FOUND_ROWS', 0, 6);
````

I often write sql statements like below

````php
$query = "
SELECT
sg.spaceID,
( :earthRadius ...
````

A trim solves