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 (5388,44861,22509,6862,44685,44762,17335,39676,24412,17839,6875,45072,3883,16935,44875,44775,17351,44869,37267,44865,6609,30986,44674,17703,17114,18894,45180,37057,45262,18446,13988,5259,18185,44671,4765,45277,6782,44851,8753,44745,44853,17835,44873,44878,44711,44835,3,32454,5410,44894,18650,17904,24411,44765,18648,14622,4686,17492,44837,18900,44687,44766,18042,44855,17756,44858,18286,28530,24441,17755)
Unknown column 'np.person' in 'where clause'