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,28313,13,45177,18981,24411,45421,44849,8753,44884,19057,5259,17527,44869,18719,18430,44766,44687,44669,13425,45051,44865,44870,18648,44873,45567,18894,44878,17237,18688,44866,45516,44855,18794,30986,45180,44861,44768,17981,3,5388,14402,44765,6862,18572,36472,17601,17114,28530,9341,44674,13922,45515,44894,32454,3883,17092,18446,44848,17904,45229,6609,45042,44685,18900,6782,44745,17839,24412,45286)
Unknown column 'np.person' in 'where clause'