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 (28530,44836,17755,18279,44855,45043,17527,18237,37267,44689,44835,44775,18900,18430,10402,44894,4686,44711,17492,18446,44762,18353,44865,17556,5388,45262,16935,34194,18172,17756,44837,13922,44849,5259,18794,45286,44745,17904,24441,5410,24438,44873,30963,17351,5993,6862,6875,44851,17237,45229,45072,17981,44868,16885,17114,45042,18996,44856,4765,18981,44854,44869,45177,37057,45516,17278,44531,17657,3,43800)
Unknown column 'np.person' in 'where clause'