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 (45051,44851,45262,19057,28313,24438,44868,44640,5993,18572,17527,8753,18648,18172,17755,18996,17835,18427,44848,30986,4686,37267,44867,45421,19078,44685,13922,44853,18650,18185,43800,18286,31354,17114,44894,17904,44766,18794,14622,44856,44775,17657,18652,45567,44875,10402,44674,44531,45042,17848,17601,45277,45517,44863,44865,5259,45516,6862,17335,14402,44762,18894,17556,45515,45518,44711,45346,17009,44845,44873)
Unknown column 'np.person' in 'where clause'