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 (24441,17771,18446,17351,4765,24438,45286,17981,17092,44766,8753,28530,44845,44867,3,17335,13922,44671,44837,18996,37057,18900,44856,17556,5388,17703,10402,44858,18301,28313,17114,17756,18648,44878,18688,18286,45177,44765,44868,45042,19078,34194,5993,39676,44865,18185,44835,5410,37267,44848,45262,44689,45229,45517,17527,17835,30135,16935,44674,44764,44669,45346,44861,43800,44855,44875,18572,6875,17657,6782)
Unknown column 'np.person' in 'where clause'