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 (18688,44855,18286,45286,44768,45229,44866,17703,18900,17092,18172,45517,30986,31354,17114,44640,17601,37057,14402,18650,32454,3,44671,16885,45072,44674,44689,18446,45561,44775,44854,44865,44873,24441,24412,44766,19078,17981,5259,17527,18430,17009,6862,16935,13,19057,44739,10402,45277,44687,4686,44685,18981,44868,44869,18301,17492,44531,45346,44836,18719,28530,44856,37267,17848,17351,44765,44861,5410,36472)
Unknown column 'np.person' in 'where clause'