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 (45518,17657,45516,17756,44745,14622,6609,18572,44765,45286,30986,24438,18286,34194,17335,44775,45229,6782,4686,28530,45421,44853,18648,18427,36472,18301,44669,44531,18446,44766,17848,13425,44836,44870,44873,45177,18042,18894,17601,30135,44767,32454,18279,17237,45262,44640,44849,17527,19057,44855,45515,5993,8753,22509,44854,17703,44764,37267,44856,44848,17556,37057,3883,16935,17839,44851,18172,44875,44671,17092)
Unknown column 'np.person' in 'where clause'