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 (28530,18688,34194,45567,8753,14402,45180,44861,18572,30963,28313,45516,18185,18237,44768,32454,18042,19078,44689,17556,44531,18652,36472,17703,18648,24412,6609,6782,10402,44640,44687,17835,5410,17771,5388,45277,16885,44837,44835,18446,18172,18719,17278,44765,18894,45229,17092,3883,17755,18286,44669,24411,44869,44764,44671,44866,17657,44836,17848,45072,45561,17981,44863,4686,30135,45043,44766,45421,44674,44762)
Unknown column 'np.person' in 'where clause'