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 (18301,18688,18353,19078,18572,44856,45180,44766,3883,18648,18652,44711,18794,18427,19057,30986,18237,24441,30963,44861,45043,43800,45286,45177,44671,3,17114,13425,13988,44767,44764,24412,44863,45051,18446,17351,17904,17756,17755,18172,6862,32454,17335,44669,30135,4686,44837,36472,18996,34194,9341,17657,44867,8753,44870,18900,45515,24438,45567,45346,17278,44768,45042,6875,45517,39676,4765,18719,37057,14402)
Unknown column 'np.person' in 'where clause'