ERROR: Could not execute query!

PROC:: COUNT FROM :: select_pictures_by_artist_under_500 (?)

'pagination_class.php' :: paginate_query()

array (
  'name' => 'select_pictures_by_artist_under_500',
  'params_in' => 
  array (
    0 => '@id',
  ),
  'params_out' => 
  array (
  ),
  'body' => 'SELECT * FROM
	pictures
WHERE
	artist_id = @id
AND
	published = \'Y\'
AND
  pictures.price REGEXP \'[0-9]+\'
AND
  CONVERT(REPLACE(REPLACE(pictures.price, \',\',\'\'), \'.\',\'\'),UNSIGNED INTEGER) <= 500
ORDER BY
	price ASC
',
  'values' => 
  array (
    0 => NULL,
  ),
)