Fixes for PHPCI in SQL Strict mode