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 (44866,31354,45262,18042,45421,6875,13,13425,44848,17904,24411,5410,17839,8753,3,18996,17556,14622,45051,28313,18172,18648,45561,44640,22509,44865,18650,18652,17703,17755,17756,17657,13922,18427,9341,4765,18301,44837,18279,32454,45072,18719,44868,34194,17335,5993,24438,18900,17848,44764,44766,4686,18572,18794,17351,17835,45516,45567,16885,44851,10402,37057,18430,44531,44894,45277,17092,45043,44878,44835)
Unknown column 'np.person' in 'where clause'