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 (18042,45072,34194,44745,17601,44671,44878,10402,44865,44762,17278,5388,13,6609,44849,18572,17703,28313,30986,19078,17527,45517,6862,45229,17904,18237,18430,18172,30135,24441,18648,44866,36472,44766,45180,45346,17492,17092,44845,17755,37267,17237,5259,17556,18652,18301,24411,18719,16935,37057,22509,17351,30963,6782,45515,18996,13425,14402,45262,18688,18279,44848,44531,44768,44739,45561,44764,45051,4765,45043)
Unknown column 'np.person' in 'where clause'