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 (13425,18996,44531,44671,45515,44764,5410,17556,45516,28530,44870,18237,44837,44674,44845,44739,18894,44863,18794,45072,44858,17009,45177,17092,18650,45277,6782,45517,45051,13922,44878,44835,17756,30963,6862,5388,14402,44836,3,44640,30135,16885,44856,44861,45042,22509,17835,44745,18719,45180,8753,18688,44689,43800,5993,4765,44687,44868,17848,44884,4686,17601,44848,44867,17703,17351,45421,18427,44669,17527)
Unknown column 'np.person' in 'where clause'