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 (3883,18042,44884,24438,37267,4686,18648,45043,44711,44868,18900,17755,18688,10402,45277,44762,44669,30986,30135,18996,45180,9341,44767,14622,22509,6875,45286,18353,17335,19057,45518,18652,3,5410,44775,18650,44867,44878,44640,17009,17703,17756,44739,8753,44870,44858,44863,45561,44531,6862,45072,18430,32454,44687,18794,45517,44866,36472,17492,44894,17237,5388,45346,44865,17904,24411,45567,13425,18446,17092)
Unknown column 'np.person' in 'where clause'