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,6609,30986,44884,45346,18237,19078,17904,17771,45042,17492,44685,18648,17657,44856,36472,45262,17351,18652,44865,45516,18996,18353,14622,44745,16935,44766,44767,44866,45072,44674,18688,18427,45518,44854,6782,17237,45286,18894,37267,44765,24411,4686,45561,44689,45177,17835,18172,5259,18279,44848,44863,17527,14402,44768,30963,5993,28313,18042,13,43800,44873,44858,31354,44855,18719,45229,44531,5410,44669)
Unknown column 'np.person' in 'where clause'