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 (44854,44848,44858,6609,18237,18427,44837,45561,45043,44689,44711,45346,44739,14622,17839,18688,18353,30963,17756,45072,44863,17351,18301,44849,24412,44764,44855,45180,18981,13922,44875,18996,3883,18894,18900,17771,16935,18648,45421,18042,39676,18719,44775,17848,44851,28313,14402,17527,17601,18446,17556,6875,5410,44866,18279,17835,45518,44671,44870,17278,5259,4686,30135,18172,24441,5388,45229,13,18572,37267)
Unknown column 'np.person' in 'where clause'