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 (30963,45346,44685,19057,17848,44849,4765,34194,44848,6609,28530,45277,18894,6862,44837,17771,37267,44674,18301,18572,17657,44739,18279,6782,5259,18650,37057,17756,17278,14402,18688,18172,45262,43800,45517,9341,44878,17351,24438,44768,30135,44687,24412,44866,17335,44671,45561,44856,44765,45180,5388,18185,44775,3,18237,44745,18286,44835,18652,17492,17601,13988,18042,45421,44854,17904,32454,19078,17703,18430)
Unknown column 'np.person' in 'where clause'