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 (44765,6862,44762,18427,37057,24438,3883,45177,18042,18353,5993,28530,18900,45286,17839,17703,44766,44711,18894,22509,44851,5259,34194,30986,17981,18996,17237,17009,44674,44739,45515,9341,18446,17756,8753,17755,44845,44894,14622,44640,17556,5410,44856,44884,13988,44869,44868,45043,37267,44531,44870,45567,44861,44687,18650,6875,45042,17092,44837,44853,17848,45229,44855,18981,18794,45262,44767,17351,17335,13425)
Unknown column 'np.person' in 'where clause'