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 (17278,44854,8753,45072,14402,44866,18286,17237,36472,45517,37057,13425,6782,44851,19078,18042,45043,44856,44766,39676,45561,22509,4686,45180,18900,18996,5993,18430,17835,5259,44671,17114,17335,37267,45051,44689,45567,17092,44836,44767,45286,17351,31354,44849,5388,3883,6875,45515,24441,13922,14622,28313,18688,45277,18446,44685,45177,45518,18894,18981,18794,16935,17009,44861,17771,44868,13988,30963,5410,17601)
Unknown column 'np.person' in 'where clause'