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 (44711,17527,44762,45517,17278,18172,44767,18894,5410,17756,44854,13922,30135,45515,18981,17351,32454,18996,24411,44861,18286,45180,5993,18237,24412,44858,17657,6862,17848,18650,18427,44835,44765,17981,17114,44836,44848,24438,31354,28313,13,17839,18648,18688,44671,18353,30986,17771,45518,43800,16885,17556,17835,45561,44869,5259,45229,28530,44775,18572,44849,44674,18719,36472,18446,4765,30963,44768,6875,45286)
Unknown column 'np.person' in 'where clause'