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 (18430,44868,4686,17492,45043,44531,19078,14402,28530,44687,44873,18894,45177,45518,17237,18042,8753,44835,44861,17703,5259,45072,24438,6609,44869,13922,44866,44878,45277,18279,36472,17009,45229,44854,18353,6782,44669,6875,3883,44884,44851,16935,18650,17835,14622,37057,45567,44867,18237,45180,17278,13988,30963,18652,44875,3,18719,17335,17556,45346,44853,18794,5993,17601,44856,44766,44767,45051,18446,44870)
Unknown column 'np.person' in 'where clause'