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 (45567,19057,17237,18794,44762,5993,30135,18172,18719,45072,44873,19078,17904,18353,9341,44870,45277,17278,45051,18900,17756,32454,45516,44854,44531,6875,17556,18042,18427,5259,17835,44878,18185,37267,17335,44836,17657,18650,44855,45229,45515,17092,18981,44866,44775,18286,44766,17351,44884,4765,44640,16885,13922,13,31354,13425,45346,44849,45561,13988,3883,45180,45262,6782,44858,45043,28530,17771,36472,44689)
Unknown column 'np.person' in 'where clause'