SELECT COUNT(DISTINCT(id)) AS nb_total_images
  FROM phpwebgallery_images
    INNER JOIN phpwebgallery_image_category AS ic ON id = ic.image_id
  WHERE ((author LIKE '%houl%')  (author LIKE '% 25m facile%')) AND  category_id NOT IN (-1)
;
[mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(author LIKE '% 25m facile%')) AND  category_id NOT IN (-1)' at line 4