string(230) "SELECT COUNT(*) as num FROM movie WHERE (name REGEXP '(あまちさき' OR actress REGEXP '(あまちさき' OR vid REGEXP '(あまちさき' OR actress REGEXP '(あまちさき' OR list REGEXP '(あまちさき') AND active = '1'" Invalid query: Got error 'parentheses not balanced' from regexp