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 (4686,19078,18301,44837,18719,17527,37267,4765,24411,44685,13,44711,45567,44835,17839,22509,45177,44745,18427,44689,44869,44848,45277,45286,10402,45517,17009,39676,18185,18430,37057,17771,14622,18996,18286,5993,18650,36472,17335,14402,44768,28530,18446,44875,19057,44765,13922,43800,17114,45262,44858,17237,44671,17755,44867,24438,44764,17601,45042,5410,18172,17556,18042,18652,18794,5388,44866,6609,8753,44766)
Unknown column 'np.person' in 'where clause'