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 (45346,8753,45262,32454,44875,45286,24438,13922,45515,30986,18237,4686,17092,9341,44866,44867,6875,18794,4765,37057,17237,17278,44865,44845,24412,16885,44870,44745,44863,44868,17835,44894,44775,18042,44764,18430,45517,44767,43800,45072,44855,44861,18688,44853,18446,44531,18427,45516,45051,18185,17657,18996,28313,19057,19078,36472,18301,44762,44837,44848,3,24411,5410,18981,18650,44689,22509,17755,45043,17703)
Unknown column 'np.person' in 'where clause'