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 (45177,17278,17492,18996,16935,45229,44531,18650,44764,44837,18279,22509,9341,44865,44894,45515,45346,18794,44835,18572,14622,44767,44762,18237,45286,6609,8753,44866,28313,24438,44855,44766,44867,44858,17835,44674,17351,37267,13425,17756,3,17335,18719,44884,17237,30135,43800,44685,18652,44853,4765,30963,44873,13922,17114,44739,18981,24412,19057,37057,5410,44854,44775,6875,17771,5993,5259,44861,45561,44868)
Unknown column 'np.person' in 'where clause'