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 (44687,44878,45043,17755,17237,44674,44764,45515,18981,44768,31354,17756,22509,44669,44640,19078,44775,34194,24412,44855,18353,13922,18794,44856,17351,13,18185,4765,45517,17904,13988,36472,44848,9341,17703,18172,14622,44836,17492,5410,18719,44870,18900,45516,6862,18894,44851,13425,45042,45518,28530,6782,44531,17848,45229,4686,18650,45051,17092,37267,18430,30986,44767,30963,44849,45286,44884,39676,44858,5259)
Unknown column 'np.person' in 'where clause'