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 (45051,44873,18286,44894,17335,45561,44863,45518,3,6782,45072,44689,17755,44745,18688,4765,18650,18648,17703,17981,45229,22509,44884,18572,18446,32454,44837,44764,17771,44875,44869,17657,45515,36472,14622,44762,45286,44765,17114,19078,17009,37057,45043,45042,44868,18719,18981,17848,6875,17839,19057,18794,13922,18353,17904,30135,8753,44711,17601,44531,45346,18279,45180,17527,18430,44854,30986,30963,17092,17756)
Unknown column 'np.person' in 'where clause'