Fixed a couple bugs with the MySQL Where implementation