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 (44762,6875,44867,17755,44873,18572,28530,8753,30135,45051,18301,45229,44870,44687,44863,18794,45262,44640,44531,13,44875,24411,18652,24412,17904,14622,6782,36472,14402,17981,5993,17601,18286,37057,18996,44858,45346,17335,16885,13425,30986,44671,17009,4686,45286,44765,45421,17839,22509,44861,44836,44865,44869,19078,18185,43800,44866,37267,39676,28313,44766,18648,34194,44764,18719,17492,18900,44745,44853,45180)
Unknown column 'np.person' in 'where clause'