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 (44863,18688,30135,17657,45561,14622,17848,44856,17756,17703,10402,18172,44867,44764,44739,30986,6609,44687,18981,24441,44674,17114,45072,18446,45177,44671,45180,17492,5388,17755,6862,45518,8753,18900,44853,44775,44845,5410,44745,18996,17556,9341,17771,44870,44858,45277,16935,24412,19057,17351,45262,30963,44849,18430,45346,5993,4765,17527,37267,18353,18279,32454,44766,45229,45051,45515,5259,44869,22509,44851)
Unknown column 'np.person' in 'where clause'