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 (44854,17601,18648,44768,24411,45277,17092,6862,44762,28530,30986,17114,13988,45561,22509,17904,44671,45051,17839,32454,44853,16885,17771,18900,44689,18996,45177,44766,44856,44851,19078,44868,44867,44861,44863,44858,3,45567,43800,30963,45262,18427,36472,44866,44845,44837,44745,44640,4765,5410,45043,44767,18719,18042,44687,44764,18446,13922,45517,18430,9341,18279,17556,37057,18572,6875,44869,44836,17835,44685)
Unknown column 'np.person' in 'where clause'