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 (44669,44865,44711,45346,13425,44870,17092,18427,45421,17601,45518,5993,13922,44835,13,45262,17771,32454,22509,39676,19057,30986,37057,5410,44854,44766,4686,17904,44848,37267,17657,45180,34194,3,45051,45567,17351,18185,17756,18237,14402,13988,5259,44861,44853,44884,18572,14622,44894,18719,44689,45072,44768,24441,18353,17835,18286,44765,17703,16885,44878,17556,6862,44767,44868,17848,44775,18981,43800,44856)
Unknown column 'np.person' in 'where clause'