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 (44775,44851,45516,44853,30986,17703,45515,24411,17114,3,44687,17839,44854,37267,24441,18427,4686,39676,24438,28530,45567,24412,44764,44884,44640,18301,45072,19057,17237,44836,18172,44739,17904,17835,18286,14622,17601,17556,5993,28313,13,44745,18650,45346,17756,44878,44845,45043,17009,44873,17755,18894,16885,45180,44875,17527,17092,44868,44866,44861,17278,5388,44863,14402,18430,44870,43800,18981,18572,44855)
Unknown column 'np.person' in 'where clause'