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 (45421,30135,10402,18652,45517,24411,17527,28530,44878,17114,44640,44870,18794,44689,17009,24438,17771,44869,36472,16885,17492,45180,44856,18996,18353,18719,45072,13,44764,18430,18237,5259,44669,44845,44863,17278,44861,44767,44858,6862,16935,45177,3,45561,17703,44855,18688,45516,45567,44854,37267,18446,44867,18172,17848,44848,44875,17237,32454,5388,44711,44685,18648,30963,45515,24441,17839,31354,45518,44765)
Unknown column 'np.person' in 'where clause'