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 (44873,17278,30986,14622,44837,13922,37057,44640,17981,31354,44711,39676,45180,18650,44853,44849,6609,18185,8753,44739,17092,18688,32454,18894,44858,44851,18446,5993,13425,44848,18427,34194,44868,24441,44875,5259,17601,13,37267,18996,17755,17756,45517,17904,44687,45515,18237,44870,44745,5388,14402,17771,18652,17835,44768,6862,18572,45043,18042,44865,30963,45561,45229,24411,44836,19078,44856,44689,24438,44835)
Unknown column 'np.person' in 'where clause'