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 (44835,43800,18427,19057,44845,18279,44870,44762,44878,18894,44861,9341,44764,24411,18446,3883,18301,45262,22509,44765,44689,44868,18981,39676,44669,45277,44687,17092,18286,45567,13,18652,44853,18237,44894,44867,30986,18688,19078,14402,13988,44854,17848,6862,18996,44766,5410,18572,44866,6782,24441,45180,8753,4686,37057,24412,44768,45518,17556,44674,44837,45072,45042,4765,44856,44884,45177,17114,45346,17527)
Unknown column 'np.person' in 'where clause'