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 (44894,30986,4765,37057,18042,3883,44837,44867,44868,45262,17904,43800,4686,6875,45518,24412,44869,18279,17839,44884,44873,13,19057,30135,45421,44835,24441,31354,45561,44845,45516,17755,44531,18652,18446,3,5259,18427,9341,18237,14622,19078,17492,44739,5410,30963,17848,17771,18286,17981,44866,44711,17835,44775,18794,45180,37267,44687,14402,44853,45229,18894,17351,44762,17335,44745,44765,13988,45177,17009)
Unknown column 'np.person' in 'where clause'