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 (44870,5259,17835,44848,18894,32454,5993,34194,17351,18279,6862,44762,44766,44775,45043,18353,17904,17335,44531,44687,45516,17771,44853,17756,44671,45229,18572,44845,18996,28530,44674,44764,45180,44849,17601,44739,43800,44836,44689,44884,30963,8753,39676,18237,18981,36472,18042,13,17556,44861,44745,44669,44835,24411,18719,17237,45262,44875,44768,45346,17527,13425,45518,5410,22509,18794,44854,44869,4765,30986)
Unknown column 'np.person' in 'where clause'