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 (18996,18237,45515,44868,45043,44689,18650,18353,44849,44745,44762,17756,18430,24412,44858,6875,13425,18279,18688,44775,44851,44766,44765,3,45262,14622,17755,17335,18172,18652,18719,5410,17556,14402,6609,18301,16885,44856,45051,18427,31354,44837,17009,36472,18794,6862,44870,5259,45421,44861,22509,44671,44863,45229,44845,9341,44875,8753,18042,44855,44854,24438,44835,3883,37267,17237,44711,44869,16935,17904)
Unknown column 'np.person' in 'where clause'