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 (18650,22509,44870,44711,17114,45561,18446,10402,5993,44849,45177,14402,44739,17601,16885,43800,17771,44869,45229,5410,44671,18430,44837,14622,45043,18286,44764,18042,37267,3,17527,44835,44768,45517,13922,44861,17848,17839,44765,45515,44894,18652,17703,6875,30986,17981,4765,32454,18427,18981,44674,17009,45277,17092,45180,45518,44867,44863,9341,4686,17237,44875,45262,44848,17556,24438,18648,44531,44767,17755)
Unknown column 'np.person' in 'where clause'