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 (44531,44711,44869,44739,18794,6862,44685,19078,44866,45346,44853,44856,30963,44640,17601,44835,17756,18172,18652,45561,44689,13988,17755,18894,18719,18688,24411,34194,3883,18996,5993,3,4686,44687,44762,45567,44836,45286,18900,44884,17527,5410,24438,44765,45177,44775,45515,19057,13425,45518,44870,6609,44878,8753,45042,18279,45277,17009,18301,24412,32454,45051,17335,13,44849,16885,45516,44669,31354,14402)
Unknown column 'np.person' in 'where clause'