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 (19078,17981,5410,44685,5993,13,44837,17839,45561,17657,44764,6862,18794,45518,45515,17114,44868,45517,45421,44768,44767,30963,44870,44856,44863,44745,44866,44849,45567,3883,6875,44687,18900,18894,44669,45516,14622,13922,18042,44875,18286,17351,17237,24412,30135,18430,22509,45277,10402,18652,17755,44531,44674,18301,44861,18688,28313,39676,44869,45346,17904,45180,17527,44671,5388,30986,44853,44845,3,18427)
Unknown column 'np.person' in 'where clause'