Database_Exception [ 2027 ]: Malformed packet [ SELECT * FROM urls WHERE FALSE OR ('/politics' REGEXP REPLACE ( REPLACE ( REPLACE(CONCAT('^',( CASE WHEN RIGHT(url, 1) = '/' THEN INSERT(url, length(url), 1, '/?' ) WHEN RIGHT(url, 2) = '/*' THEN INSERT(url, length(url)-1, 2, '/?*') ELSE url END),'$') , '*', '.*') , '+', '.+') , '[digit]', '[0-9]+') ) ORDER BY (length(url)-length(REPLACE(url, '/', '')))/length('/') DESC, sort DESC ] ~ APPPATH/modules/kohana/database/classes/kohana/database/mysql.php [ 199 ]