(string) 
			SELECT p.photo_id, p.server_id, p.album_id, p.hash, p.orientation, p.caption, p.description,
			       p.ext, p.type, p.rating, p.likes, p.rated_by, p.percent, p.total_views, p.total_comments,
			       p.total_favorites, p.allow_rating, p.allow_comment, p.add_time, p.hash_time, p.errno, p.status,
			       p.user_id, u.username, u.subscribers, s.photo_url, pc.name, pc.slug, p.cat_id, p.orig_id
			FROM photo AS p
			LEFT JOIN user AS u ON (u.user_id = p.user_id)
			LEFT JOIN photo_categories AS pc ON (pc.cat_id = p.cat_id)
			LEFT JOIN server AS s ON (s.server_id = p.server_id)
			WHERE p.photo_id = ?
			LIMIT 1
(string) 
			SELECT p.photo_id, p.server_id, p.album_id, p.hash, p.orientation, p.caption, p.description,
			       p.ext, p.type, p.rating, p.likes, p.rated_by, p.percent, p.total_views, p.total_comments,
			       p.total_favorites, p.allow_rating, p.allow_comment, p.add_time, p.hash_time, p.errno, p.status,
			       p.user_id, u.username, u.subscribers, s.photo_url, pc.name, pc.slug, p.cat_id, p.orig_id
			FROM photo AS p
			LEFT JOIN user AS u ON (u.user_id = p.user_id)
			LEFT JOIN photo_categories AS pc ON (pc.cat_id = p.cat_id)
			LEFT JOIN server AS s ON (s.server_id = p.server_id)
			WHERE p.photo_id = ?
			LIMIT 1
MySQLi query has prepared entries, but no types or variables specified!