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,17492,44861,44869,18427,9341,44873,45043,45180,44739,18172,4765,18572,18430,44671,10402,3,18301,44689,44836,44768,45262,44762,17755,31354,18894,13988,17981,44851,18900,17848,44875,44764,45515,18794,6862,16885,18237,44853,13,17009,18688,8753,18185,18648,4686,44669,44766,18719,5388,18286,45042,44767,22509,17839,45286,18353,44863,5993,39676,13922,18981,19078,44855,18996,17756,6609,45177,44845,44894)
Unknown column 'np.person' in 'where clause'