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 (14622,44837,18981,44531,14402,17756,5993,17848,45262,4765,18279,6862,18446,44767,8753,44865,17092,44836,18301,44689,18996,44861,44869,28313,17839,45561,6875,17601,18572,24411,18719,17771,45518,18237,45177,44766,44671,22509,45515,44855,17981,44835,44765,3883,5410,44849,16885,17009,44868,18185,45042,9341,32454,45043,44669,30963,18652,36472,44858,18430,44768,13922,45277,24441,17904,18172,44845,34194,44685,17657)
Unknown column 'np.person' in 'where clause'