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 (4765,18237,44856,17278,45072,19078,5259,45180,44689,14622,6862,45518,45051,44884,30135,44766,18427,16935,28313,44837,44765,44836,44711,44849,45286,17756,36472,18900,28530,44873,44870,18279,24411,18286,44764,17237,17492,22509,37057,18652,17657,18981,18648,45043,43800,44775,45229,17601,44669,17703,44531,44640,16885,6609,45516,44685,24441,17981,18353,32454,17335,45515,3,17556,5993,24438,45561,18172,30986,4686)
Unknown column 'np.person' in 'where clause'