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 (5993,44687,45072,16885,45346,45043,44775,28313,24438,18427,18353,17839,45277,18572,5259,44858,36472,44767,18652,44851,18794,17703,45567,44739,14402,31354,17009,17556,17092,17335,44745,4686,44848,44873,18286,18648,44669,44689,24441,18042,13922,6875,28530,44711,17114,17527,44854,44868,44685,17492,18650,5410,45515,44878,3883,44531,44837,37057,44855,45517,45518,24411,44866,44671,44865,17351,18688,43800,45262,17756)
Unknown column 'np.person' in 'where clause'