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 (18572,45567,6782,44858,13,44851,44878,19078,13425,18042,17981,17703,44745,44687,43800,17835,45229,17657,45180,16885,44768,9341,34194,13988,44867,17092,17237,22509,45346,44869,17756,14622,44875,18996,10402,3883,16935,18794,24441,44689,44849,18427,24438,45277,44854,45051,30963,6875,18185,17601,36472,44640,18353,17351,32454,8753,18430,17492,44762,18301,4765,44848,45177,3,17904,6862,45516,44868,44767,18719)
Unknown column 'np.person' in 'where clause'