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 (5388,6875,44689,44861,18042,45177,30135,18996,17657,45561,28313,44764,3883,17335,18430,44669,45516,14402,34194,17904,19078,18652,18648,19057,22509,17848,45051,31354,32454,44867,44848,45043,28530,45286,44858,39676,18688,44671,17556,13988,17351,17114,44853,44868,4686,17009,30963,17981,44768,17092,44854,18650,17835,18279,44835,44766,18237,18894,5259,45180,5410,16885,44856,16935,45042,18286,17756,45567,13425,3)
Unknown column 'np.person' in 'where clause'