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 (44849,18719,4765,24411,44867,44848,45516,14622,18794,44671,17278,45043,30135,44739,44689,44764,36472,44845,44669,37267,17839,18427,18894,44866,45051,30986,45286,18172,32454,18237,45567,39676,24441,10402,44640,5993,13425,17835,44685,44531,17981,43800,14402,18652,17527,44835,17556,44687,18042,6782,44851,45346,5410,5259,6862,44767,18900,30963,44711,3883,31354,45518,18650,45229,18446,22509,6609,18301,37057,44856)
Unknown column 'np.person' in 'where clause'