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 (30135,18996,17335,17771,45561,17755,5259,18648,45277,18237,18172,6782,44851,45229,17981,18446,45043,17848,17556,17092,44884,37267,18042,37057,45286,44865,44853,44858,18279,44674,44640,43800,44845,19078,14622,14402,6862,18894,17839,17237,45421,17492,44869,44835,18650,34194,44669,13988,18652,44689,18353,44856,28313,6609,44836,18981,44866,18301,17756,5993,44855,5388,45072,45051,24411,44775,5410,44837,17601,18572)
Unknown column 'np.person' in 'where clause'