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 (44865,44856,18688,44878,18286,18353,30986,5993,17756,45051,17556,18719,17839,44867,17278,17092,44848,17904,17981,18172,45177,32454,44894,44870,5410,44762,44669,45567,44711,24438,44739,13,45518,36472,45072,18650,17351,44854,44837,18301,19057,17835,44764,6782,45262,44687,24441,37267,45277,17237,18652,4765,44869,44640,45043,45286,39676,44685,13922,30135,17755,18237,30963,18430,44873,8753,44849,13988,17114,16935)
Unknown column 'np.person' in 'where clause'