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 (16935,18900,32454,6782,17237,39676,45516,30986,44863,6862,36472,14402,45042,44711,4765,45286,17703,44853,45515,37057,44856,13425,45051,18042,44745,3,44836,18652,44878,17755,45561,22509,44764,18794,44767,24441,44765,18430,4686,44873,44689,18185,45567,18719,19078,17335,13922,17601,18237,44849,17848,3883,44845,44835,44866,43800,17771,18572,19057,44739,17492,18650,13,31354,17904,16885,45421,17756,44884,6875)
Unknown column 'np.person' in 'where clause'