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 (37267,44531,44762,37057,17278,18185,17981,18981,6782,14622,17114,17527,44884,17756,44867,24412,17755,13,39676,45346,34194,44739,45421,18237,28313,44685,44711,30963,45072,6875,44894,18042,18900,3,17657,17771,45229,44855,45518,45567,3883,44669,17556,16935,18894,43800,19057,45262,31354,44687,6609,5410,18279,5388,44866,28530,22509,18648,13922,17237,44845,32454,17835,44858,44764,4765,44851,5259,44837,44869)
Unknown column 'np.person' in 'where clause'