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 (4686,44739,13425,17114,18794,17601,44861,30135,17981,36472,19078,18446,17771,45180,17351,45229,18572,45516,17237,30986,28313,44878,45567,45043,18648,44762,24438,17657,5410,18719,17556,44851,44870,44894,43800,13,18652,6875,17756,18688,45517,10402,17335,44869,44689,6782,44849,45072,45262,45515,45277,18286,45177,39676,14402,18237,44687,30963,5993,37057,45286,18900,16885,44875,4765,44868,44775,44845,18430,24441)
Unknown column 'np.person' in 'where clause'