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 (45177,37267,19057,44855,18996,45516,18427,44775,17839,18572,44767,43800,36472,30986,6782,17492,44853,18650,17756,18430,17835,17092,45561,17556,44863,6609,44878,18286,6875,18042,3883,44848,17703,28530,24441,13988,45286,44765,44875,17237,14402,44866,37057,18688,18900,44851,45051,24411,4765,24412,18279,17527,4686,14622,5259,18353,44711,45515,24438,44531,44870,16935,44869,5388,17848,45421,13425,45043,44836,45042)
Unknown column 'np.person' in 'where clause'