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 (30963,28530,45516,18572,17771,45229,44745,17237,44775,16935,45042,17492,6782,17335,45051,18996,18981,17556,18185,17835,45346,45072,17278,44875,44671,34194,44711,44531,17114,44767,44854,45180,13425,18430,17009,45517,18237,45518,17351,45043,44669,18688,44878,18042,44640,18794,45561,17839,31354,18719,44856,44836,45286,44849,6862,44853,5388,5259,16885,13988,39676,17756,17981,18353,44766,5410,44863,17703,44870,8753)
Unknown column 'np.person' in 'where clause'