Failed to execute prepared query!
Error: MySQL server has gone away
Query:
SELECT p.photo_id, p.server_id, p.user_id, p.caption, p.type, p.ext, p.percent, p.total_views, p.add_time
FROM photo_history AS ph
INNER JOIN photo AS p ON (p.photo_id = ph.photo_id AND p.status = 1)
WHERE ph.user_id = 18876
ORDER BY ph.view_time DESC LIMIT 5