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 (17755,17835,17492,4686,45421,44875,18996,18648,45043,44848,44863,3883,44867,6782,6875,45042,18794,37057,17601,24441,44855,44869,19057,17657,13425,44845,18237,45229,17756,44669,18652,43800,45346,44853,45515,44868,44766,18279,17092,44745,18430,24412,45277,45262,44873,44870,18172,17009,18650,39676,45286,44836,24438,44768,44837,17848,44835,18981,18572,44767,45051,18286,45180,17771,44858,44865,6609,8753,30986,17278)
Unknown column 'np.person' in 'where clause'