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 (17755,18996,18237,16885,36472,5259,17839,44768,44685,18794,6875,9341,44766,45262,43800,44845,44849,19057,44689,37057,17492,45177,17351,44765,44835,44866,17278,13988,32454,16935,13,24441,45229,44674,6862,44836,18894,44531,18042,8753,44858,4765,5388,45346,18981,17527,17756,28530,45072,18688,18719,44865,44873,37267,18572,44884,17335,17904,45517,5993,18185,45421,18279,18900,24411,44870,44853,6609,45567,18301)
Unknown column 'np.person' in 'where clause'