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 (16935,18446,34194,44775,44745,18719,45051,3883,18237,44869,44856,44836,17556,18353,28313,39676,24411,18996,44866,45042,30963,24441,5993,44837,44767,45517,17835,45516,18301,44854,17771,44849,18427,45177,18648,30986,44863,45515,17756,18894,22509,45567,13922,17848,24438,31354,18172,6875,44671,44875,43800,18652,44835,18185,44689,17237,17703,45561,6862,45286,14402,44685,44861,18688,44640,36472,45043,17755,44868,8753)
Unknown column 'np.person' in 'where clause'