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 (18981,44856,44674,5259,45346,45515,44765,44853,18572,44851,17114,44854,16885,17771,44866,22509,44868,18719,45518,17981,17092,44869,32454,17009,44873,44855,45180,17601,44671,6609,44836,44531,18648,14622,18894,44848,3,17703,44894,17756,44711,17278,18688,45567,45042,6862,18185,18650,31354,30963,18286,45043,13,18900,17556,44766,9341,30986,44858,18237,44849,18794,4765,37267,44775,18172,36472,45072,24441,44867)
Unknown column 'np.person' in 'where clause'