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 (17981,44854,5259,16935,13425,17351,45072,45262,13,44848,44849,44855,18894,24438,3,34194,18650,44674,6782,45180,18794,17657,5410,24441,45517,44837,44669,45518,19078,18185,18648,17335,44775,8753,44870,44836,45043,44711,17092,36472,18430,18353,17601,44869,32454,44689,17756,17839,17703,45277,45042,44858,44768,44863,24412,31354,45561,30963,44640,44766,37267,4765,44884,45421,39676,17009,28530,44867,18172,18688)
Unknown column 'np.person' in 'where clause'