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 (18042,18650,44853,18572,44711,17755,45515,45561,16935,44768,44775,44765,45516,24411,44739,45277,18446,18286,44869,18652,44845,44767,5388,44835,18279,44687,18427,13988,17904,3883,10402,44848,44866,17092,6862,17981,3,44640,18719,44689,17009,44865,44884,45042,17703,19057,45177,13,30963,44856,5993,32454,44671,28313,44836,5410,18894,18237,44669,4686,44674,17835,17839,17601,5259,45517,24441,18648,17527,17556)
Unknown column 'np.person' in 'where clause'