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 (4686,30986,44775,44764,45286,28530,44849,18894,16885,17755,9341,36472,45051,18900,17904,4765,44861,17556,44866,24441,17492,44745,44878,45043,44854,16935,13,18427,5259,44835,44640,44865,44873,18794,44762,45421,6862,44848,18237,17114,31354,44869,17756,44739,30135,24438,44767,14622,44858,5410,24411,39676,5993,45515,44836,19057,44531,17009,10402,37267,13425,17092,44765,44884,22509,44875,44853,18652,18042,30963)
Unknown column 'np.person' in 'where clause'