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 (17904,44711,3,44866,18794,19057,45346,6782,44894,24411,16935,44854,24412,44835,44867,45515,45042,17755,44767,44689,18446,17556,17657,18648,37267,16885,28313,44848,37057,17237,45180,44863,44669,32454,18279,45229,44674,44766,17335,44765,10402,44671,30963,17492,18650,17351,44884,18719,30986,45567,17981,6862,18042,8753,18652,44768,5993,43800,36472,17278,45277,17703,9341,44868,24438,6609,5388,45262,18286,44878)
Unknown column 'np.person' in 'where clause'