SELECT
DISTINCT p.id as poid, p.clientid, p.posted,p.title,
p.description, cat.name as speacker, p.display_date,
IF (p.audio_status_main <> '0', p.audio_file, NULL) AS audio_file,
IF (p.video_status_main <> '0', p.video_file, NULL) AS video_file,
IF (p.pdf_status <> '0', p.pdf_file, NULL) AS pdf_file,
sc.cname as cname, sc.url as clientUrl
FROM lb_postings p
LEFT JOIN lb_categories cat ON (cat.id = p.category3_id)
LEFT JOIN share_client sc ON (sc.id = p.clientid) WHERE p.id IN (119788273 , 119817283 , 119763846 , 2762133 , 2762587 , 2736559 , 2547550 , 2523391 , 2480600 , 2445758 , 2320705 , 2273128 , 2262540 , 2264426 , 2256019 , 2183424 , 245440 , 245490 , 245506 , 245538 , 243368 , 237920 , 237923 , 237377 , 228577 , 206446 , 154439 , 92456 , 48003) AND `p`.`private` = 0 ORDER by posted ASC
DB ERROR : (2006)MySQL server has gone away