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 (3,17981,44855,8753,18688,45177,44768,44766,45072,17009,45516,44739,17278,18996,31354,17601,32454,18648,17657,45042,44775,45286,18894,17755,44878,44870,17237,44853,34194,14402,44894,43800,16935,44836,18237,44531,17114,44671,44875,28530,44858,24441,13988,17835,44884,18652,18794,10402,45262,5259,44866,22509,44764,17351,16885,13425,44762,18719,13,44851,44767,17848,17771,5993,18650,17492,6609,45567,4765,19057)
Unknown column 'np.person' in 'where clause'