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 (18286,13988,45421,45277,17278,18042,19078,14622,44766,18279,18572,18652,9341,16885,44848,17092,44861,18894,24412,5993,24441,45518,5259,18237,18996,44767,17755,44875,44868,44867,18650,18301,17703,17556,6875,13425,44836,44739,44669,17492,18353,44835,22509,44711,18427,8753,34194,44671,31354,44878,44849,45229,44853,44845,5388,45177,44765,44837,17848,4686,18900,44689,44869,44870,44856,18719,16935,45180,3883,6609)
Unknown column 'np.person' in 'where clause'