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 (44875,16935,45518,45567,6875,5259,17755,19057,9341,18650,32454,44674,44868,44640,44870,18648,18688,44836,44837,39676,18286,17114,44865,44766,17092,44884,30135,6782,30986,44894,13425,44762,30963,45516,28530,44873,17527,3883,44854,17756,45262,4686,18981,3,45180,5410,44768,44861,37057,5993,36472,44775,44858,17335,17009,18900,44689,13922,44863,18572,24412,45042,17771,18237,18996,5388,45277,17556,17703,44671)
Unknown column 'np.person' in 'where clause'