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,28530,17601,18572,45180,8753,45346,4765,16935,44689,17351,44894,6782,44869,17835,18688,4686,44868,30986,44863,44854,18237,45567,45561,18279,44873,44867,18652,9341,44711,22509,13988,44856,45262,17755,17237,44764,44671,44849,45051,45042,18446,17981,28313,17092,18794,44865,18185,44685,18301,17009,44875,44768,32454,13425,17114,5410,18353,18900,6609,45043,17527,18981,44837,18894,24411,5259,31354,44845,44884)
Unknown column 'np.person' in 'where clause'