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 (44687,44856,17848,44765,44767,39676,45180,45516,44865,45043,43800,19078,17114,45051,6862,44768,44868,18279,3883,44854,44894,17492,17092,17756,44858,34194,18446,44669,17657,44674,44685,17237,37267,44861,6782,6609,24441,22509,44836,18172,17351,13,44711,24412,45277,44884,18996,18286,18301,44671,44848,10402,45517,44775,44745,28313,45346,28530,44870,17009,16935,17601,13425,45262,44531,5993,44866,45229,44640,18900)
Unknown column 'np.person' in 'where clause'