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 (44875,44640,6862,13922,44531,44869,44711,18172,17981,45517,18286,18185,17835,44766,30963,5993,44867,24438,45042,31354,18652,44865,44745,17703,4686,45051,3,18996,18894,45262,44851,17278,17601,18237,44861,10402,18446,44845,36472,44764,45516,5259,44873,37057,44858,45515,28530,18794,44768,28313,44685,37267,44848,44870,18572,24441,16885,5410,44855,19057,17755,45177,17492,30135,44856,18430,44868,45277,17527,44853)
Unknown column 'np.person' in 'where clause'