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 (18427,31354,43800,16885,17848,44849,13,45346,6875,5410,22509,44875,30963,6862,45421,17657,17756,44674,28530,17492,30135,18353,13988,18652,17335,18301,44775,24412,44745,17092,44858,45072,24438,44836,45051,44739,3883,18185,17835,17009,44689,18688,17703,13425,45042,44867,16935,44861,14402,44765,24441,17114,4686,44762,45567,44869,18237,6782,45516,44640,44853,18648,18894,19078,28313,44865,45517,44854,17839,18900)
Unknown column 'np.person' in 'where clause'