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 (17351,44836,17556,18279,17601,34194,17092,19078,17703,18981,44861,17657,18652,14622,16885,44640,30986,45180,18650,44739,5388,44685,44875,17237,24438,18688,4765,32454,37267,8753,18794,22509,44848,44765,17335,45517,17755,18900,18430,44884,24412,18237,31354,45567,45072,44854,17771,13922,18572,44851,45051,44849,5410,17492,18648,44870,13425,44878,17009,44669,36472,10402,18286,45262,44866,6875,44869,45042,14402,18894)
Unknown column 'np.person' in 'where clause'