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 (18794,3,17771,44767,18688,44739,18981,18237,6875,18427,18430,24412,36472,44856,45042,5410,45277,44745,44855,44866,9341,17839,6782,44768,45177,17527,30986,43800,39676,44669,18185,13988,17981,5259,44689,17492,4765,45286,32454,4686,44884,30135,28530,44687,34194,17009,45043,44766,44863,17703,17092,16935,45262,17848,28313,44845,17351,5388,44867,44640,45421,44674,44764,14622,45567,18353,44865,17114,18900,44531)
Unknown column 'np.person' in 'where clause'