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 (44765,44870,44853,44875,45180,32454,5388,18572,17835,44873,30135,45516,44866,44863,13,44745,44669,17492,44775,19057,6862,31354,36472,44687,17771,8753,44766,13922,45517,18996,18237,44739,45515,24438,14622,44835,18172,44531,18900,44884,24411,44711,24441,17848,17904,44762,17703,18353,43800,17981,44640,17755,17114,18446,10402,44856,45567,18427,4765,17839,45346,13988,34194,44865,4686,45561,18185,44867,3,44848)
Unknown column 'np.person' in 'where clause'