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 (44739,3,18430,22509,9341,18688,3883,44863,19078,31354,14402,13425,28530,17601,17755,17703,44870,45072,6862,18446,44837,18648,44856,44836,13922,18719,45262,45561,44689,6782,30963,24441,18286,17335,44855,44764,44884,17556,44687,44849,44853,44873,5410,30135,18237,44674,36472,17009,14622,45229,44848,18572,39676,24438,28313,44858,44762,45051,18652,17114,45346,18172,8753,4765,44835,45515,17527,32454,17351,44711)
Unknown column 'np.person' in 'where clause'