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 (14402,18648,17092,44765,17278,28530,44775,18237,37267,5410,18719,13,45043,17657,45051,13922,18446,17492,32454,44845,18894,17556,18650,45346,44768,44854,45042,45229,45277,5259,44711,18042,17703,17114,45516,13988,8753,24412,44745,19057,44868,6782,45567,18353,44856,18301,6862,18794,44873,24411,18652,44851,17835,18996,44848,4765,44878,6609,17771,13425,17601,17527,44865,44858,44531,45518,18172,3,44836,17981)
Unknown column 'np.person' in 'where clause'