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 (44768,31354,44775,45177,37267,13922,44870,10402,45051,5993,18688,44863,17601,18981,44685,18427,17771,18279,44875,14622,44854,18446,45262,44739,4686,8753,44711,39676,3883,18237,44764,3,45515,30135,44856,44837,44689,44836,45072,17848,18648,44861,17904,6609,32454,44851,36472,17335,44848,44878,18719,44765,18650,28313,18301,45516,43800,16885,5259,30986,17657,44855,18794,17839,18042,24441,18430,17114,6782,17556)
Unknown column 'np.person' in 'where clause'