Software error:

SQL Syntax Error: Got error 'repetition-operator operand invalid' from regexp - From: SELECT B.cid,B.l1, B.l2, B.l3, B.l4, B.l5, B.l6, B.l7, B.l8, B.l9, B.l10, B.l11, B.l12, B.l13, B.l14, B.l15, B.l16, B.cid, A.*
			 FROM links AS A,
		       dirs AS B 
		       WHERE ( (A.title REGEXP '[[:<:]]FREGUESIA[[:>:]]') or 
													 (A.description REGEXP '[[:<:]]FREGUESIA[[:>:]]') or 
													 (A.keywords REGEXP '[[:<:]]FREGUESIA[[:>:]]') or (A.country_cust REGEXP '[[:<:]]FREGUESIA[[:>:]]') or (A.city_cust REGEXP '[[:<:]]FREGUESIA[[:>:]]') or (A.title REGEXP '[[:<:]]DO[[:>:]]') or 
													 (A.description REGEXP '[[:<:]]DO[[:>:]]') or 
													 (A.keywords REGEXP '[[:<:]]DO[[:>:]]') or (A.country_cust REGEXP '[[:<:]]DO[[:>:]]') or (A.city_cust REGEXP '[[:<:]]DO[[:>:]]') or (A.title REGEXP '[[:<:]]CARVOEIRO[[:>:]]') or 
													 (A.description REGEXP '[[:<:]]CARVOEIRO[[:>:]]') or 
													 (A.keywords REGEXP '[[:<:]]CARVOEIRO[[:>:]]') or (A.country_cust REGEXP '[[:<:]]CARVOEIRO[[:>:]]') or (A.city_cust REGEXP '[[:<:]]CARVOEIRO[[:>:]]') or (A.title REGEXP '[[:<:]]DE[[:>:]]') or 
													 (A.description REGEXP '[[:<:]]DE[[:>:]]') or 
													 (A.keywords REGEXP '[[:<:]]DE[[:>:]]') or (A.country_cust REGEXP '[[:<:]]DE[[:>:]]') or (A.city_cust REGEXP '[[:<:]]DE[[:>:]]') or (A.title REGEXP '[[:<:]]MA??O[[:>:]]') or 
													 (A.description REGEXP '[[:<:]]MA??O[[:>:]]') or 
													 (A.keywords REGEXP '[[:<:]]MA??O[[:>:]]') or (A.country_cust REGEXP '[[:<:]]MA??O[[:>:]]') or (A.city_cust REGEXP '[[:<:]]MA??O[[:>:]]') )
		       AND (A.cid = B.cid) 
		       AND ((A.newsubm = '') OR (A.newsubm IS NULL))
		       
		       GROUP BY A.url
	        at /var/zpanel/hostdata/zadmin/public_html/leme_pt/pesquisa/search.cgi line 410.

For help, please send mail to the webmaster (jorge@leme.pt), giving this error message and the time and date of the error.