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 (44866,44711,37267,45346,44671,18446,45561,31354,16935,44674,6782,30986,17601,18996,6875,44762,44855,36472,44865,5259,44854,17278,17237,24438,44745,17839,45277,44868,44894,18353,19078,18650,32454,24412,3883,18301,18286,45051,45229,45177,18572,30963,17527,22509,30135,14622,44858,28530,44835,44849,17114,6609,17848,45421,45180,13922,44765,17835,28313,17657,18981,18430,44531,44739,44767,45262,45567,44867,18900,17703)
Unknown column 'np.person' in 'where clause'