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 (24438,18446,45072,36472,44894,17009,44863,17237,39676,18042,3,45277,17756,44766,44866,17092,44765,18572,17278,18652,6875,44764,37057,28530,44689,6782,18237,5993,44868,6862,44854,30135,45042,45180,44858,44837,17114,17601,45421,44767,24411,5259,31354,17835,44531,18286,44849,18894,44836,28313,45051,17492,32454,44674,9341,10402,17527,44768,17981,44884,43800,18688,6609,45286,44848,5388,45229,44640,17351,45346)
Unknown column 'np.person' in 'where clause'