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 (24441,44671,44856,44853,5388,45346,6862,13425,5259,5993,24438,44867,18042,3883,17771,17703,32454,17009,19057,45567,45421,44884,18996,45277,17755,44674,44868,45515,30986,14402,45262,17904,13922,45072,30963,4686,44745,13,44851,18688,45180,44854,44845,45286,18894,44865,17092,44875,17556,44858,44878,24411,6782,24412,44855,17601,18301,22509,44531,30135,36472,18652,44870,18237,17981,44739,44669,3,18650,44894)
Unknown column 'np.person' in 'where clause'