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 (6875,45180,44768,16885,5388,17092,45518,44855,18446,44869,24441,44531,45286,13,44845,44836,44865,44858,6782,18301,45421,45262,3883,44856,8753,18650,37057,24411,14402,44853,18185,44669,17492,44848,18652,30135,45516,6862,17556,17351,5410,45561,44767,44764,44765,45177,10402,16935,18286,9341,18648,24412,18719,18430,17755,18688,44866,45517,45042,18900,5993,24438,44689,45051,44878,17771,18237,17527,44870,17904)
Unknown column 'np.person' in 'where clause'