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 (17657,24441,44835,17092,18794,18172,18648,44836,24438,45180,44775,24411,10402,44765,30963,16885,44768,34194,44875,44669,22509,14402,17114,44849,17835,5993,18286,18430,32454,39676,18900,44855,44845,44858,44863,45346,18427,45177,13922,44868,44854,44687,17839,4686,6609,17981,37267,43800,6782,44870,18652,13988,45517,44878,45043,17755,44894,44851,45516,44848,44861,18237,3883,17771,17492,45051,44866,3,18688,18279)
Unknown column 'np.person' in 'where clause'