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 (45051,28530,44767,18652,18794,17009,17492,44866,17114,17835,24441,6782,13988,44685,24412,13,44768,6609,45561,17839,44856,17351,17335,45286,44835,44671,44689,22509,44765,44745,24411,44865,5993,45517,45277,44531,13425,45072,18172,44762,44894,6875,18688,44854,30963,30986,39676,18996,17092,44867,44868,17556,17703,14622,44739,44875,45515,44764,45346,45516,24438,18353,18279,37267,43800,18650,19078,17657,45518,44711)
Unknown column 'np.person' in 'where clause'