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 (44865,17756,37267,18688,39676,44863,44861,17556,45515,44531,44870,18900,44854,45561,17492,44640,44674,44855,18042,44745,44856,5410,45346,18652,30986,13988,17839,45180,17904,18353,28530,6875,45051,14402,17114,44767,44884,6609,44669,17981,45262,24411,44835,31354,17527,44837,44851,44873,17278,44849,43800,45518,18719,17771,3883,13425,44687,8753,44853,18446,18572,45072,24412,13922,30963,45177,24438,4765,17237,17335)
Unknown column 'np.person' in 'where clause'