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 (18652,13922,6609,44711,17114,45072,30963,44739,18719,4765,18981,4686,13,17703,44762,43800,17771,5259,18427,32454,44851,44866,45518,6782,44868,44854,45180,31354,17755,45567,18286,45286,17092,3,45346,44865,36472,16885,44858,17492,45043,10402,44674,14402,44861,44855,44640,44867,44764,44685,9341,44765,44775,18279,24438,45051,18172,44837,44836,3883,18353,16935,37057,17657,45516,45229,44856,44845,44878,17848)
Unknown column 'np.person' in 'where clause'