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 (45515,45277,18981,18900,44768,44837,5259,44711,5388,17278,44687,44671,22509,44858,17492,44884,44873,45346,44762,18648,18446,17351,44894,31354,28313,44689,37057,6862,14402,13922,45518,44640,13425,44765,44674,18688,44863,44836,17092,44853,18427,5410,18794,44878,8753,3883,18042,17114,45517,39676,14622,44875,18286,17904,10402,45072,17756,18301,30135,44835,17703,19078,17839,44866,18719,16935,32454,18430,44531,18650)
Unknown column 'np.person' in 'where clause'