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 (18648,17981,14622,44711,44669,17601,18185,45421,44849,5388,18301,17904,45072,44835,18353,44870,45277,45517,31354,19057,18894,16885,18172,24441,44837,44775,17556,45051,18572,17092,18900,45516,44689,44745,13,44854,45042,44856,13922,44685,17114,14402,45229,17703,18650,19078,44674,17492,39676,44531,17527,18430,44884,45567,17848,17756,44766,18981,28313,44875,45043,45515,36472,44640,44858,45346,44739,17755,44865,13425)
Unknown column 'np.person' in 'where clause'