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 (18688,44856,24412,19057,34194,44835,30135,17755,44868,24438,16935,18185,44848,44745,28313,17527,36472,44689,17351,24441,18719,44854,44866,39676,45229,6862,44855,3,44711,44837,4765,18572,44870,45180,32454,45177,14402,45051,45286,6782,17601,3883,45518,17237,45262,37267,19078,18301,44775,44873,30963,4686,45515,17114,8753,28530,18353,17492,17556,44767,30986,44878,18650,18286,17839,5259,17009,44845,24411,44849)
Unknown column 'np.person' in 'where clause'