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 (44531,24438,18430,44689,45277,44687,6875,18688,44854,17601,17839,44884,18279,16885,37267,30986,17009,17756,45518,17527,44866,28313,44674,44640,24441,45180,13922,30963,18572,5410,45515,44835,44836,44873,44853,9341,17092,44867,44739,44671,31354,17237,44869,44849,17335,17492,37057,45516,18652,44768,44837,18648,24412,36472,44851,19078,45517,22509,44764,44775,17981,17351,44765,5993,44711,44858,43800,45561,17703,45346)
Unknown column 'np.person' in 'where clause'