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 (18237,18286,45286,34194,18652,44685,45043,17278,45051,44745,44856,44689,5259,18794,44851,44870,18430,6875,18719,44739,17601,44837,14622,18172,18572,13922,13988,28313,36472,44855,18301,44531,18996,44884,44765,44875,17839,17755,17114,30135,18427,44863,31354,44835,17657,17492,6862,18900,44858,17351,44867,45262,6609,44671,3883,44868,44764,8753,45517,44865,44767,5410,44775,44853,24411,17771,24412,17981,6782,44768)
Unknown column 'np.person' in 'where clause'