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 (37267,24438,44764,18042,44674,45286,13922,18652,45072,30986,17756,45042,44767,18446,17835,18279,18572,30135,8753,28313,6782,17981,44765,6875,45277,45515,18301,24441,30963,45518,45517,14402,34194,44836,16935,17335,18996,17237,24411,45567,4765,44861,44865,44687,44878,5388,5410,45043,44856,22509,17009,44689,17556,18185,6862,4686,44848,17657,45262,18794,44854,17601,44768,45421,45346,44894,17839,28530,44775,19057)
Unknown column 'np.person' in 'where clause'