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 (6782,44835,44875,45229,17839,44866,44775,18301,18279,3,17755,44858,17009,13425,44861,44851,44845,18446,30963,6609,44869,44768,30135,44855,44878,30986,4765,45567,5993,18185,18572,44870,44711,44848,18353,19078,10402,43800,18648,37057,24411,45516,28313,17335,31354,17904,24438,6875,44868,44687,18650,44849,24412,18900,44766,44884,44671,14402,44765,17835,18427,22509,17981,18688,44767,45042,45561,45262,9341,44873)
Unknown column 'np.person' in 'where clause'