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 (45561,17657,44669,44855,44640,45177,45517,17835,44875,28530,44767,44873,44835,5259,45421,18172,17848,44865,44837,18794,13988,45346,24441,39676,8753,44861,44531,22509,17492,18185,44856,44866,4765,30986,18688,44849,44764,17351,17755,44863,18237,28313,44848,5388,18719,19057,14622,4686,5993,18981,37057,45042,10402,16885,18301,45518,45286,44674,44739,45262,45043,6609,30963,44869,13425,44854,17771,45229,45072,44845)
Unknown column 'np.person' in 'where clause'