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 (44866,17527,9341,44768,45286,4765,17981,17703,45518,44845,18427,8753,45515,44531,4686,18981,44640,36472,44687,39676,45277,45043,44861,5993,17771,18652,44739,44767,44689,17904,5388,45229,18650,44669,45517,44762,45177,30986,44849,5410,17756,3,14402,44851,44837,44855,44869,44878,44854,18237,18648,44863,24438,3883,18279,44865,16885,44745,18286,44870,44711,18042,17278,17755,17835,18688,44853,10402,18894,14622)
Unknown column 'np.person' in 'where clause'