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 (44711,9341,44837,44765,45286,45346,17114,18650,44689,16885,44867,24441,44851,22509,18286,44856,17556,18794,6862,45051,44853,44875,44836,44866,18279,17335,44848,45072,17835,13988,43800,17009,44865,17092,44764,44640,17527,5410,18572,37267,18185,45043,17351,5993,18996,4765,44869,6609,24438,45042,17755,18648,44835,44861,24412,8753,44870,30963,45262,13,6875,45229,45277,18981,44854,19078,3,44845,44669,18237)
Unknown column 'np.person' in 'where clause'