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 (3,44669,45180,44870,18427,34194,44739,18430,44685,45262,17114,45177,45515,45346,24438,45567,17278,44531,44767,45229,44762,24411,44689,45517,44640,39676,30135,44711,44873,44674,17981,17755,10402,18286,44687,16935,17527,24441,17839,44851,37057,44856,24412,32454,30963,18900,18301,44768,13922,18996,18042,44863,45518,45051,36472,17237,18172,45286,18648,44894,44849,45421,14402,18719,45043,44765,17904,45516,45277,44853)
Unknown column 'np.person' in 'where clause'