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,44671,43800,44836,24438,44674,44894,45277,17092,44739,18446,17755,44669,44640,44873,14622,18688,45517,17527,45518,44856,44855,17835,17492,6782,18996,31354,44868,5388,44869,37267,44853,44878,17904,8753,4686,44861,18430,45262,45421,45051,28313,44865,14402,45177,44884,10402,5993,44835,17351,18185,13,13988,18652,44870,18353,44875,19078,18794,17839,44851,45072,3883,18719,17657,13922,44745,44849,18900,44837)
Unknown column 'np.person' in 'where clause'