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 (44640,18279,28313,17278,44671,44863,44764,19057,44835,45072,44768,44858,18446,24411,36472,14402,18286,18688,39676,17848,45518,44873,17601,17703,45043,18353,34194,24441,44837,44689,44745,45262,32454,45286,17657,17492,44851,44836,17556,44884,18652,3883,22509,4686,44865,45051,44869,18185,17114,44866,44853,44765,44674,28530,17904,44669,45180,44687,44870,44868,18719,18894,44711,37267,18430,37057,44775,6875,17335,3)
Unknown column 'np.person' in 'where clause'