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 (44873,44851,18301,4765,18572,18688,31354,17601,30135,14402,44868,45516,45421,44767,44765,44711,22509,44669,24441,44768,45286,6782,44870,18996,6875,17556,45518,18172,45229,16885,17904,45072,17657,13988,4686,18353,17527,18427,17278,24411,45517,45561,44775,17839,44855,44836,44858,45051,44863,17981,44745,45277,44865,45043,5410,44878,44853,44685,18042,45042,13922,17835,17114,18446,44689,5993,10402,17771,44894,17703)
Unknown column 'np.person' in 'where clause'