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 (17835,17848,45516,44873,17092,18794,37267,31354,17703,44669,44765,44854,18185,44884,10402,18981,44768,43800,45518,18353,18042,18301,44863,18446,30135,5259,44689,44687,44858,45277,34194,17009,44878,45286,18237,44745,3,44851,39676,6875,16935,30986,45177,22509,45051,16885,18430,5993,44845,14402,44762,44849,28313,44685,18688,45180,18650,13,18719,18648,24438,45561,45072,17601,44836,6609,17839,44848,17335,24441)
Unknown column 'np.person' in 'where clause'