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 (6875,17904,45262,18185,30963,17601,17657,18427,5259,44853,16885,18572,45518,37057,45072,3883,44873,44848,44687,44863,18981,44845,8753,18688,37267,28530,18794,13922,4765,17351,5993,14402,44866,19057,17527,13425,45277,44867,31354,44768,17492,17237,43800,45515,10402,44836,30986,44674,44685,18900,44865,45051,44854,18286,17981,44851,17848,44835,45229,44855,17092,32454,44739,18446,45346,18996,44861,5388,30135,44856)
Unknown column 'np.person' in 'where clause'