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 (24438,44854,18981,18996,45516,18719,18572,17278,44845,45042,18172,31354,44764,17981,44861,13922,44739,44849,13425,18446,37267,17092,18688,45421,45051,44873,17835,6609,9341,44836,17657,44858,16885,18279,44689,17756,10402,18794,18286,44878,18430,44856,44768,44685,45072,39676,44869,44837,44711,16935,44531,44868,19078,37057,44669,32454,45277,17703,18042,44884,17237,44671,28313,17527,3883,18301,17556,18185,45567,44767)
Unknown column 'np.person' in 'where clause'