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 (44765,28313,45346,13425,44745,17755,44766,18430,45561,44853,5259,44867,24411,18648,18688,17657,44835,44531,37057,6862,17981,45567,5410,18279,45515,44870,18652,17703,18042,18794,44868,44856,24412,45072,30986,44861,45286,17527,45421,18650,45042,45229,45517,44863,13988,44674,19078,17278,32454,18172,34194,44866,36472,30135,17351,24441,44854,18894,44873,45180,44775,18572,17492,44884,45518,45051,17335,17756,6782,3883)
Unknown column 'np.person' in 'where clause'