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 (17114,24438,28313,39676,17527,44849,44764,44856,6875,10402,44775,17848,18353,44836,44873,18237,6782,13922,18185,45180,45277,18996,45346,24411,4686,8753,43800,18794,17278,18172,44861,44853,37267,9341,32454,13425,44894,44768,5993,18446,5388,44765,45286,22509,18652,18688,24412,18427,44767,44689,18981,44848,44687,17556,3,13988,30963,44884,45229,44669,17601,17981,6609,44762,44867,45042,44855,44835,36472,17756)
Unknown column 'np.person' in 'where clause'