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 (45515,45346,44765,17278,45561,24412,31354,44875,39676,17556,44853,44836,16935,44674,17756,18353,18981,32454,18427,44687,44861,45180,44640,18648,22509,44762,44849,18301,24441,4686,18286,44856,44865,44768,18572,13922,45517,18650,28313,45421,13,18900,6782,44745,4765,30986,44884,6609,6862,30963,18688,14402,44767,17657,45516,18446,44669,17981,18996,44869,13425,14622,44711,45229,45518,43800,45043,45277,44766,19078)
Unknown column 'np.person' in 'where clause'