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 (45262,44685,44873,44849,28313,44855,45042,44851,24411,30963,5388,18650,44865,44868,44845,44711,18652,32454,18430,45286,5410,18572,17657,44836,18894,44866,45043,17756,44745,17981,9341,17556,18042,18794,13,17278,5259,45072,13425,44858,13988,19057,44863,45515,44875,44765,45421,45051,44764,3883,24441,6609,18446,31354,6862,18719,17009,18688,17848,3,39676,14622,44837,44531,18185,44854,44669,14402,6875,17351)
Unknown column 'np.person' in 'where clause'