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 (24438,44851,19078,17848,44766,18446,18572,17835,17981,44894,30963,45180,45043,6875,18688,44767,45561,17601,18301,6609,45042,18648,45277,5993,44878,30135,18427,19057,18237,45346,44866,44765,17237,44867,16885,44739,18650,44863,45262,44855,44865,18353,45516,44711,5410,30986,44762,44848,31354,18185,17527,18286,44875,44775,24411,8753,6862,34194,28313,18900,44689,44868,17351,17492,14622,18719,44856,6782,39676,44845)
Unknown column 'np.person' in 'where clause'