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 (45051,5259,30986,45043,17278,18981,44671,44711,28313,17335,4686,44853,45516,17835,17601,44765,44868,44739,24441,17237,18652,22509,44762,18719,3,18688,6875,44674,45561,13922,17839,44875,18430,10402,17703,17756,13,44775,44845,44767,18650,45518,44848,45072,9341,45180,18042,18794,17092,14622,34194,32454,18572,18237,44873,17848,18446,44837,44689,3883,16885,4765,45346,44640,44861,16935,13988,39676,17114,44687)
Unknown column 'np.person' in 'where clause'