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 (44767,18572,44866,17351,44856,45051,18042,44669,44870,30135,18185,28530,3883,17278,5410,45277,17771,17114,18286,44671,44689,30963,45072,6875,4686,24412,18996,44851,44849,18894,3,44640,18279,45517,44878,34194,44884,44764,17755,18430,18688,44745,45518,17981,32454,44765,45042,17657,9341,8753,45561,37267,17601,18172,17492,18900,44875,36472,28313,24438,44865,44674,18652,18427,44768,44873,4765,31354,17756,17848)
Unknown column 'np.person' in 'where clause'