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 (17703,17835,44764,44858,44878,18286,17771,44689,6609,28530,44674,44856,18279,6875,44855,18894,8753,18353,18446,17556,45561,30963,18652,44866,18719,22509,17755,18688,44669,44867,6862,44884,44865,24441,32454,4765,44767,45517,18981,17904,34194,18996,18572,18301,10402,17114,44835,24438,18185,17981,17756,3883,44853,45518,44685,45277,45180,31354,45567,45051,3,44687,9341,44640,44775,44861,18427,18172,44875,30986)
Unknown column 'np.person' in 'where clause'