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 (45567,4686,17092,44765,44863,37057,14402,44767,44884,31354,13,45516,30963,17703,44768,44711,45177,44868,45515,17904,6862,44640,17556,3883,18430,44739,28313,18900,17114,28530,18279,17527,18650,18185,19078,6875,37267,45180,44861,9341,45421,3,44869,45277,18719,24411,44875,45229,17756,45262,45517,5993,44669,44685,18172,45072,44775,43800,18446,44837,17601,45346,4765,17009,44845,13425,44849,17335,24441,44867)
Unknown column 'np.person' in 'where clause'