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 (44671,44863,44865,17904,45561,44884,24438,17771,45072,44855,18237,45262,44837,17351,44669,45180,17981,17556,44858,28530,44762,18996,45515,4686,17839,44531,17755,17492,16935,30963,18900,13425,5410,44878,44711,44869,44851,44836,45229,44768,24441,17527,45421,30986,16885,18353,45051,44766,44870,44856,44866,44867,18042,9341,44861,45042,18652,45277,32454,44764,45517,8753,17092,17601,44739,6609,17835,18185,14402,18427)
Unknown column 'np.person' in 'where clause'