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 (18279,44873,3,17092,37057,18353,22509,18042,18185,17527,45516,16935,18894,44671,17657,17351,44867,28313,17492,39676,44851,45567,44766,18172,18794,45043,45277,31354,32454,17981,18446,44837,17237,44854,5993,13922,17114,18650,45346,18427,44711,45561,4686,6862,45286,3883,10402,44875,16885,44849,44861,5410,45518,44848,44869,45262,9341,30135,44687,6875,30963,17839,44855,45515,24411,44531,17009,44775,44858,44866)
Unknown column 'np.person' in 'where clause'