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 (10402,45515,17092,18572,45051,45346,43800,18446,17771,17703,45180,17755,17556,18279,6862,4765,18981,18648,44870,17114,37057,44837,44836,18185,3,39676,3883,13922,44687,13988,18652,45286,18427,44762,45043,44863,16885,34194,44854,17756,18650,44873,18794,44739,45177,44858,44867,17848,18996,44869,45518,17981,17009,18894,36472,17835,6875,17601,45561,44845,17904,44765,5410,28313,44767,44861,44669,44835,17492,44884)
Unknown column 'np.person' in 'where clause'