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 (39676,44878,44671,44745,44739,30986,44884,17904,14402,37057,24412,17278,37267,28530,45177,45561,44858,24438,44669,13,3,6862,24441,16885,44711,44875,17848,44865,18427,44762,44845,18185,44766,17009,17351,43800,17335,8753,17703,31354,44849,44855,17755,45346,18648,44775,18301,18279,17756,16935,18650,44894,32454,18981,18688,17492,30135,17527,45518,18237,44836,18900,24411,44764,17601,45180,30963,45072,44861,18894)
Unknown column 'np.person' in 'where clause'