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 (13988,17237,45515,18237,18279,19078,22509,37057,16885,44687,45229,44745,17981,44867,44894,36472,5410,34194,18172,17657,44858,3,17335,45042,18286,44884,44671,18353,44669,28530,18446,17351,18572,18042,44854,9341,18652,18981,44836,44848,44856,44767,44865,24411,17756,44768,13425,45286,45421,24441,44765,44764,18427,44674,44835,19057,17092,17839,14622,45346,44855,44868,45561,45043,17601,45277,44762,17492,17527,30135)
Unknown column 'np.person' in 'where clause'