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 (9341,17835,44766,5388,44687,19057,44765,37057,44764,18185,17904,44854,10402,45042,44856,18996,43800,17556,44835,30963,17601,17009,16885,18301,17351,44868,18237,44894,44869,18894,32454,28313,44866,44851,19078,17848,44863,44739,37267,18794,45517,17981,17114,45567,45043,18286,45518,44865,44837,44861,4765,44858,18719,44768,17771,17839,18427,44689,34194,17092,45072,24441,18172,44669,18430,6875,24438,18572,13425,45516)
Unknown column 'np.person' in 'where clause'