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 (44775,45517,45042,19078,43800,18430,37267,17114,18427,44863,18900,18353,45072,6875,44739,44867,16935,18572,17755,5993,17351,44878,45177,17835,45518,44845,18894,39676,45262,24411,14622,18237,13988,30135,17981,6782,37057,5388,44854,17335,44764,10402,45567,45346,44765,44868,18446,44669,44869,44768,17237,18648,18172,44875,3,44685,44762,44866,18042,45180,44767,31354,18719,30963,18981,18650,45286,44894,17527,44856)
Unknown column 'np.person' in 'where clause'