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 (44674,45518,30963,44762,17756,17092,45262,18688,44856,43800,18301,44869,18981,17657,44685,5410,24441,16935,17848,45421,45277,19057,45042,44836,17351,24412,17527,45180,44745,18172,45286,17755,44766,17771,8753,45051,30135,18572,18794,44849,19078,44853,17556,44768,17904,6862,6609,18446,45517,17981,44875,17335,9341,44861,4686,17839,13,5259,24438,44531,45567,18894,18652,13988,18430,44767,17114,4765,44866,44868)
Unknown column 'np.person' in 'where clause'