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 (32454,17756,17009,17981,24412,17835,18652,18981,30986,24438,45567,44869,3,44866,45518,18794,18353,17904,18172,18301,44858,44884,17278,37057,31354,18427,44674,18237,44867,17601,18279,19057,18719,44865,5388,22509,44851,17848,44854,43800,30135,45262,44762,19078,44767,17351,18650,28313,44855,18446,17657,17527,24441,44878,10402,18688,44775,44863,17237,44836,44669,17092,44768,16935,44765,45515,44845,17492,44873,17703)
Unknown column 'np.person' in 'where clause'