Got error 'repetition-operator operand invalid' from regexp
SELECT
DISTINCT
c.construction_id,
c.construction_number,
c.address,
c.is_light,
MAX(s.is_pn) as is_pn,
c.city_id,
City.name as city_name,
getConstructionState(c.construction_id) as state,
c.construction_type_id
FROM
Construction c
LEFT JOIN Side s ON c.construction_id = s.construction_id
RIGHT JOIN City ON City.city_id = c.city_id
WHERE getConstructionState(c.construction_id) = 0 AND
(c.construction_type_id = 21 OR c.construction_type_id = 24 OR
c.construction_type_id = 28 OR c.construction_type_id = 26 OR
c.construction_type_id = 27 OR c.construction_type_id = 22 OR
c.construction_type_id = 23 OR c.construction_type_id = 5 OR
c.construction_type_id = 6 OR c.construction_type_id = 31 OR
c.construction_type_id = 30 OR c.construction_type_id = 29 OR
c.construction_type_id = 35 OR c.construction_type_id = 25 OR
c.construction_type_id = 36 OR c.construction_type_id = 37) AND
c.address REGEXP
'\'++++\''
GROUP BY c.construction_id ORDER BY
City.name, c.construction_number;
Filename: models/MConstruction.php