Query: SELECT COUNT(*) AS `count` FROM `fociki_photos` AS `Photo` LEFT JOIN `fociki_users` AS `User` ON (`Photo`.`user_id` = `User`.`id`) WHERE `Photo`.`privacy` <= 0 AND `Photo`.`id` IN (SELECT DISTINCT photo_id FROM fociki_photo_tags WHERE tag IN ('Jack's Bar'))

Warning (512): SQL 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 's Bar'))' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 440]

Query: SELECT `Photo`.`id`, `Photo`.`name`, `Photo`.`created`, `Photo`.`updated`, `Photo`.`user_id`, `Photo`.`secret`, `Photo`.`hidden`, `Photo`.`description`, `Photo`.`last_comment`, `Photo`.`privacy`, `User`.`id`, `User`.`username`, `User`.`hashed_password`, `User`.`email`, `User`.`rank`, `User`.`token`, `User`.`created`, `User`.`updated`, `User`.`language`, `User`.`firstname`, `User`.`lastname`, `User`.`gender`, `User`.`photos`, `User`.`birthday`, `User`.`hidden`, `User`.`location`, `User`.`photo_id`, `User`.`phone`, `User`.`gg`, `User`.`skype`, `User`.`msn`, `User`.`aim`, `User`.`jabber`, `User`.`photo_secret`, `User`.`last_public_photo`, `User`.`friends`, `User`.`email_messages_notification`, `User`.`photos_limit`, `User`.`slideshows`, `User`.`last_public_slideshow`, `User`.`last_friend_photo`, `User`.`last_friend_slideshow`, `User`.`privacy`, `User`.`last_public_album`, `User`.`last_friend_album`, `User`.`albums` FROM `fociki_photos` AS `Photo` LEFT JOIN `fociki_users` AS `User` ON (`Photo`.`user_id` = `User`.`id`) WHERE `Photo`.`privacy` <= 0 AND `Photo`.`id` IN (SELECT DISTINCT photo_id FROM fociki_photo_tags WHERE tag IN ('Jack's Bar')) ORDER BY `Photo`.`name` asc LIMIT 12

Warning (512): SQL 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 's Bar'))  ORDER BY `Photo`.`name` asc  LIMIT 12' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 440]

Warning (2): Invalid argument supplied for foreach() [CORE/app/controllers/photos_controller.php, line 290]
Photos : Jack's Bar - Your online photo album!

Photo for tags : Jack's Bar

Warning (2): Invalid argument supplied for foreach() [CORE/app/views/photos/tags.ctp, line 35]