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 (44870,44745,6862,44775,17492,17351,6609,18172,44854,5259,37267,44835,44868,34194,44669,44845,45262,17556,45277,28313,24441,4765,44531,44873,13425,17237,18719,18650,17657,44836,16885,44863,45042,13988,18894,5410,44856,45516,18185,39676,44671,17981,4686,45421,18427,17835,18900,17527,9341,18652,44867,18648,28530,18981,44858,44848,45346,18279,18353,24438,44711,44884,8753,44875,17756,45177,45043,44869,3,10402)
Unknown column 'np.person' in 'where clause'