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 (24438,17981,45421,6875,18652,44865,44894,44878,10402,6862,44866,6609,44863,44845,28313,32454,18427,44671,45286,44848,17009,17839,18688,44855,17237,18719,18430,45277,44711,44854,17601,4765,44867,44762,44764,44739,45043,18996,24411,45515,3883,18446,44836,17755,17771,45177,18237,17703,45229,45180,17556,9341,44835,18286,44767,44685,5993,44765,45051,44869,24412,17657,44849,44870,45561,39676,24441,5388,44873,28530)
Unknown column 'np.person' in 'where clause'