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 (24411,8753,45180,32454,44669,10402,30986,44851,30963,18572,44767,6609,45051,17601,45229,36472,3,17657,28530,44837,44861,45561,18894,18650,5410,39676,44835,37267,18996,18301,44878,44531,17492,14622,17835,34194,17839,44766,18430,44894,28313,44836,44866,44865,17527,44848,17755,5388,44853,16935,44855,24412,17092,17703,17351,3883,17771,17114,44858,44873,44884,13988,17904,45262,44854,16885,6782,13,45517,44739)
Unknown column 'np.person' in 'where clause'