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 (18648,44745,30135,18042,37267,44836,18353,18427,44868,37057,9341,44674,18794,17092,16935,4686,17839,44669,18446,44671,44835,45180,44869,14402,44762,17835,18572,45516,44878,17556,45043,44685,44884,44856,44858,18286,45229,18237,13425,17981,17009,17527,45277,13,17114,17335,28313,5259,45561,34194,18301,5388,45177,44853,5993,6875,44768,18279,22509,6862,5410,45042,45286,44894,44845,44687,45262,17756,17771,31354)
Unknown column 'np.person' in 'where clause'