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 (44669,17981,45262,9341,39676,45561,18172,45567,18430,44745,45229,18900,18301,45177,45346,18286,44867,5388,17657,19057,17904,44765,45421,17601,18794,6782,17771,44767,37057,45518,44854,18572,17009,18652,30986,17492,18719,17835,45516,45517,17703,36472,18996,44766,3883,44861,31354,44531,16935,44762,14402,44873,44775,45515,17755,17278,44855,44689,28530,44764,24412,44869,17237,17351,44711,18688,44768,43800,8753,44674)
Unknown column 'np.person' in 'where clause'