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 (45072,44531,22509,44884,18185,30135,19078,18652,44768,30986,18286,44869,28313,17839,18446,44837,30963,24441,44762,45516,44868,45042,31354,14622,44765,17237,10402,45421,17556,17492,13988,44858,18650,18279,5993,18719,44687,44671,18427,18996,44764,34194,17114,18794,6782,4686,44861,36472,17351,44689,43800,18042,6862,45515,13922,44854,17703,17904,44875,44775,18430,44745,44835,17835,44853,19057,18981,18237,44669,45177)
Unknown column 'np.person' in 'where clause'