Added parameter array checking

Testing:
Checks the parameter array to ensure the correct number of values inside
the parameter with sequential integer indexes.

Production:
Strips out any non-integer indexes from the parameter array inside the
_log_query function.
FIX: Added parameter array checking

Fixed regex issue that caused almost all tests to fail.
FIX: Added parameter array checking

Updated regex to disregard placeholders within quotes.
FIX: Added parameter array checking

Fixed the regex not having backslashes escaped.
FIX: Added parameter array checking

Added debug code to see why it's failing.
FIX: Added parameter array checking

Added some more debug code.
FIX: Added parameter array checking

Changed some debugging code.
FIX: Added parameter array checking

Updated preg_match_all parameters.
FIX: Added parameter array checking

Remove some empty results from the array before checking.
Document improved testing suite PR