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 (45515,17848,19057,44835,24441,17835,37267,45180,30986,18446,45561,44849,18286,17114,30963,44868,44851,44884,18894,45421,45286,45516,44855,44745,44861,5259,17904,24412,18981,18430,10402,44853,44870,18427,45042,44674,45043,17492,44671,37057,18719,18652,28530,17527,17657,16935,13425,14402,18185,16885,8753,44685,18353,18996,17771,14622,44739,44762,44765,45346,44848,13,18648,18237,45277,44775,9341,44873,6782,17756)
Unknown column 'np.person' in 'where clause'