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 (45229,44853,24438,45515,18279,37267,44775,44685,18652,22509,17335,14402,30986,45561,45262,18650,45051,36472,45277,44767,19057,44863,44875,3,45517,28313,44835,18719,5993,6609,17237,45286,44764,44837,17904,18648,44867,44687,13,34194,18894,44739,17848,9341,44858,44854,44873,45567,45072,4686,18572,18794,17755,18301,17756,44674,17556,44855,44711,44669,5259,17657,17492,44766,13922,18172,13988,45421,18042,17092)
Unknown column 'np.person' in 'where clause'