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 (19057,18981,45042,44835,39676,17835,44685,44868,44849,44765,17278,45515,45262,6862,14622,17556,44866,18172,37267,6875,45561,13,45229,44689,10402,30963,17848,18650,4765,17771,44766,18279,36472,6782,28313,24441,18572,44884,17114,44768,45517,18719,28530,44875,44878,24411,5259,30135,44669,44671,17756,17657,44764,17351,18648,8753,18353,45516,45567,30986,44837,44767,31354,44745,44531,13425,44863,44867,44687,24412)
Unknown column 'np.person' in 'where clause'