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,17492,16885,17755,5388,44849,45517,18688,13922,44866,36472,45561,3,19057,45286,9341,44671,45043,44855,45277,34194,44711,17114,17351,17278,13,17904,18572,6862,44775,31354,39676,17848,3883,45515,44865,8753,17527,30963,28530,4765,18794,18894,17839,32454,6782,18900,18185,44870,44863,44858,45567,24411,18427,44765,44689,43800,44762,13425,44868,45518,18172,17009,44669,18981,16935,44884,28313,24438,44854)
Unknown column 'np.person' in 'where clause'