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 (36472,18172,44766,24438,22509,44711,24441,45517,17771,44640,18572,18427,45262,44856,45229,18719,44835,18996,44868,44845,17527,17981,17835,45516,44851,32454,44873,45346,16935,17848,6782,39676,5259,14402,18652,44867,6875,17904,19057,44745,45051,18279,43800,17839,44870,5993,16885,9341,17009,17657,17237,6609,30135,24411,30963,14622,18900,44669,45277,44875,44836,17755,17335,44849,44674,13922,44848,17756,18688,18648)
Unknown column 'np.person' in 'where clause'