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 (44764,17009,31354,17835,44762,45346,18353,18172,44875,18794,44739,44849,14402,30963,44768,18981,45421,30986,17981,44689,44854,45177,45518,18572,45180,44868,24411,44835,13988,32454,44674,44669,18301,17492,44884,45517,18042,6862,44851,44894,17527,39676,45516,30135,44767,17351,18430,44863,18279,3,17848,16885,4686,44869,44848,17771,44858,5388,44745,37267,44855,44836,44766,28313,13,19078,18900,18648,18719,18650)
Unknown column 'np.person' in 'where clause'