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,18172,45518,6782,37267,44863,45515,44851,45346,44869,44739,44845,44766,18427,18981,45043,14402,45561,17278,17237,13988,44858,45286,18446,44884,44674,44762,18353,4765,17335,44856,24411,13,44764,17848,45421,44866,44775,5259,45262,18648,30135,44868,18430,10402,17092,45180,44671,18996,45042,18572,17771,45516,18794,6862,44894,45072,44849,17835,19057,44711,17527,44867,13425,18650,28530,24412,18900,44685,17009)
Unknown column 'np.person' in 'where clause'