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 (6782,44775,44640,18279,19057,17756,18042,18353,44766,16885,44768,30963,44851,28313,44739,34194,17904,45421,44865,44835,44884,17657,18794,45286,4686,6609,6862,17278,18719,39676,17351,17335,17981,19078,17703,5388,24441,18237,13,44855,30135,17755,44767,30986,45516,18894,44875,18301,44856,17848,5993,17527,45567,18650,18185,44866,10402,44861,44849,44764,16935,45043,44531,32454,13922,44765,4765,44863,22509,18427)
Unknown column 'np.person' in 'where clause'