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 (17771,45042,44853,44845,45262,28530,32454,4686,44531,44768,18996,44848,17335,18719,36472,24412,45346,44875,13988,18430,44689,24441,6782,17278,45561,45277,44837,6875,24438,17527,30986,44671,45518,18981,8753,44711,44739,6862,17839,44765,16885,18688,37057,18572,44878,30963,18650,44767,18042,44865,45072,5388,37267,17904,5410,44775,44836,44856,44687,44674,17092,14622,17981,18237,19057,44866,18286,44835,16935,9341)
Unknown column 'np.person' in 'where clause'