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 (44875,44685,18648,6609,17848,45346,18430,44894,44767,18301,18237,5388,16885,18042,6862,45561,28530,17904,44745,5259,18996,44671,4765,17492,44849,44878,18172,17835,17703,44765,44669,17351,34194,45515,24441,3883,45043,19057,44858,37267,30135,44848,13922,45177,18900,44687,44711,44861,17527,5410,6875,24438,44884,31354,6782,24412,8753,45051,18286,17771,44869,44674,17278,43800,45518,44739,44854,45421,45286,44863)
Unknown column 'np.person' in 'where clause'