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 (44856,34194,44674,45518,17009,28530,44848,17839,44762,28313,44835,17771,13922,44767,45051,6782,44866,44869,18648,39676,45177,17981,18427,45042,10402,18185,44764,45515,44671,17114,24411,17278,44861,44775,17601,44868,37057,45286,18900,6862,44711,44766,45421,16935,4686,18688,44867,44836,18301,45516,18572,14622,17335,17092,14402,44640,5993,18981,24412,30986,45346,45567,44878,24441,44837,17351,45072,18353,44739,17556)
Unknown column 'np.person' in 'where clause'