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 (17756,45517,17335,45567,8753,17904,45516,37057,44870,44878,44764,18185,14402,44869,24438,45515,17092,44848,5993,18900,16885,44766,17351,18719,5259,45561,17657,17278,45051,4686,18042,3883,28313,18688,4765,44775,24411,13,44853,18301,9341,45180,6782,18353,5388,18279,45518,17601,18981,17556,44854,17114,44851,24412,44863,44849,19057,18650,37267,44884,17848,30986,17492,18430,44674,44835,44837,45229,18996,6609)
Unknown column 'np.person' in 'where clause'