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 (44873,45229,18652,45516,17092,44711,18172,44853,6782,18353,17848,18430,45561,17556,45180,44884,45051,44765,13425,30986,45518,44845,45286,44835,44671,28313,45277,44863,44775,18301,14402,18446,3883,45043,44878,17114,44762,32454,18981,17839,18996,17981,44868,18900,13988,18185,44866,18237,45042,44685,44766,45177,44861,10402,28530,4765,45515,45262,18286,17703,45567,44849,44767,44869,30963,44858,18427,19078,44531,17904)
Unknown column 'np.person' in 'where clause'