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 (17657,24411,22509,45043,36472,18430,39676,45229,45051,44711,18301,3883,13425,18996,18648,13988,44854,37057,16885,4765,17092,44768,32454,44851,44867,18572,6609,18185,44689,44745,16935,30986,30963,44894,19078,44775,44875,44853,18279,45042,45518,17527,45346,17904,44767,17556,18172,24412,28530,10402,45277,9341,17601,30135,45567,17278,18652,44685,44836,17351,6782,18794,44835,17009,4686,45515,6875,17335,37267,18286)
Unknown column 'np.person' in 'where clause'