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 (17904,45286,44868,5410,6862,44767,44837,45177,18648,10402,45561,6875,45346,17601,30135,18650,44873,18981,44764,17009,18042,13922,18279,45421,45051,18894,9341,17755,18353,17981,17237,44848,44856,44849,18185,17492,44640,44745,17756,17278,45517,44854,13,17092,30963,8753,17703,14622,44762,44836,17835,45043,45262,45515,24412,31354,44766,17335,5993,44894,6609,44531,18794,36472,19057,44865,44866,44867,18572,44861)
Unknown column 'np.person' in 'where clause'