Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (4765,44768,16935,17335,44745,17527,44837,45567,17756,45421,17657,44851,18794,24411,44836,45515,44674,44856,18719,44766,44868,6609,18237,6782,37267,4686,17237,44855,44685,45072,44870,44894,17492,18652,14402,44861,5259,45277,30135,17009,45286,44873,9341,44845,17114,24438,44863,24412,18650,17556,6862,18996,28530,44878,17351,17771,44854,44531,44875,32454,30986,44762,8753,17981,18648,18353,44775,10402,44711,18185)
Unknown column 'np.person' in 'where clause'