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 (30963,31354,24438,17904,8753,44870,45286,32454,45043,18648,13922,45051,44685,3,44671,17839,16885,44878,18900,44768,10402,45518,9341,44674,16935,6875,17114,18446,44894,18279,17848,17756,17009,45561,44640,28313,44866,5388,44739,18996,30986,5259,44884,17527,44837,34194,5410,13,19057,44875,45262,18688,17492,18286,17703,4765,45277,37057,45515,5993,44855,44869,18894,18652,18719,44764,24411,43800,44766,44669)
Unknown column 'np.person' in 'where clause'