Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18353,44863,44685,5410,36472,22509,44878,3883,32454,44851,45043,44767,44855,44854,18894,17657,24441,18172,45180,8753,44865,45346,31354,17755,17839,44765,24411,18185,3,17981,45567,14402,6875,39676,45277,45072,45517,13988,44775,17601,17009,17114,44867,44856,9341,44894,45286,19078,44711,44845,45177,6862,44640,44866,44868,17351,6782,45229,18427,18650,17335,44858,4686,18301,17492,18900,16885,17556,18279,18652)
Unknown column 'np.person' in 'where clause'