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 (22509,17492,13,5259,44875,4765,18286,45229,17657,18688,18981,44764,45042,17237,44836,18719,44767,45421,14622,5388,44762,44745,3883,18572,18648,13988,44768,18353,17848,17556,45286,37267,44869,18279,17009,16935,36472,44674,17114,44775,44866,4686,43800,34194,17703,18794,45043,44873,44848,44837,17756,3,16885,30963,44669,45051,17839,30135,18042,17527,44894,45072,17981,44835,19078,13425,19057,44878,18172,18301)
Unknown column 'np.person' in 'where clause'