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 (13988,4686,14622,17657,17527,44764,3,45517,44873,44884,13922,44739,32454,5388,17755,17848,18794,6609,44875,44878,24412,44853,10402,44669,17009,45346,44856,18185,34194,14402,45043,17237,3883,18279,18430,44849,44848,45177,6782,45072,45229,44711,45286,44766,18353,44836,45262,44858,18301,44767,44837,18446,44765,22509,13,17839,44689,19057,5259,18648,18894,28530,17114,37267,17335,18652,45561,17492,45042,16935)
Unknown column 'np.person' in 'where clause'