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 (18301,18185,16935,17848,36472,17839,45421,17703,44858,24438,44671,18572,13922,44768,17237,34194,44878,3883,44875,44870,44856,6609,5259,9341,6862,44868,45516,44873,13988,45180,37267,44745,44767,45262,17981,18688,45517,18648,18279,44764,37057,44775,44836,24441,44669,18446,45072,44863,17335,17657,17114,3,17556,44861,18900,17351,44837,44855,18719,44685,44851,44865,18652,16885,45515,4686,18981,39676,17904,17601)
Unknown column 'np.person' in 'where clause'