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 (44861,17835,30986,44855,18446,44671,24412,18981,6782,45517,19057,44863,44531,45051,44870,17351,6862,45346,28313,44878,44775,18286,36472,18353,24411,44853,44768,44849,17556,44873,17981,17492,44865,45229,18185,3883,18237,22509,18427,44766,17237,16885,13922,45262,18688,14622,5259,6609,31354,44745,13425,44739,45518,44640,17756,17755,4686,17278,44868,18996,17527,17848,17839,44764,17092,44689,32454,18279,30135,45421)
Unknown column 'np.person' in 'where clause'