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 (17492,3,44861,44767,44849,18430,44845,17335,36472,45072,17351,44739,16885,45286,5993,44873,17981,19078,45515,18185,5259,5410,17278,44669,45518,44868,44851,17904,17771,17556,44764,18427,17657,5388,44762,30986,14402,18719,45421,44671,17009,44689,44866,24441,13922,45561,18648,37057,44858,32454,6875,18894,22509,28313,44878,44768,45042,44766,13988,45177,3883,28530,44869,18353,44765,34194,19057,18279,24411,18042)
Unknown column 'np.person' in 'where clause'