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 (30963,45072,17771,18688,17278,24441,30986,6609,18353,24412,44687,45042,45277,44767,28530,17009,5388,44689,17835,45518,37057,17237,44765,17756,17492,18185,13,18572,44768,44869,18286,44674,16935,43800,13988,45051,44766,18900,44762,22509,44685,44775,45262,44739,44745,44866,14402,44878,24411,18981,44711,18446,44868,10402,18301,5259,31354,45516,17556,44835,13922,45421,37267,18794,16885,8753,19057,18894,39676,17092)
Unknown column 'np.person' in 'where clause'