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 (14622,44867,45229,24441,31354,43800,17848,30963,44835,17527,17904,18446,5410,44767,17492,17756,44853,44875,28313,36472,6862,44845,9341,30135,44765,44861,44856,18237,45515,45516,32454,44854,4765,18794,18042,18430,44711,18185,44873,44669,17657,44858,4686,44836,39676,45277,24411,44848,18279,18650,18648,30986,44764,19057,18894,28530,45072,44870,14402,45177,24438,6782,45517,16885,44768,17237,18301,44849,44837,44687)
Unknown column 'np.person' in 'where clause'