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 (44867,45346,44866,4765,18981,5388,18237,24412,16885,18042,44689,44739,18286,44836,31354,17114,6782,24411,44685,18688,17904,44835,17839,17556,18648,18572,6862,14622,17835,10402,44845,17492,45277,30986,43800,18996,36472,44854,17527,18353,44669,4686,45515,45229,6875,18894,44671,18172,17848,45518,18185,5993,5410,45517,18301,44858,44875,45286,45043,24441,44865,44674,13922,16935,17981,17351,44869,44856,45042,45516)
Unknown column 'np.person' in 'where clause'