SELECT
id, name, permalink, representative_picture_id, comment, nb_images,
date_last, max_date_last, count_images, count_categories
FROM phpwebgallery_categories INNER JOIN phpwebgallery_user_cache_categories
ON id = cat_id and user_id = 2
WHERE id_uppercat = 44
ORDER BY rank
;
[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 '' at line 8
SELECT id, name, type, params, datas, users, groups
FROM phpwebgallery_stuffs
WHERE users LIKE "%guest%"
AND params LIKE "_,_,1%"
ORDER BY pos ASC;
[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 'groups
FROM phpwebgallery_stuffs
WHERE users LIKE "%guest%"
AND params LIKE' at line 1