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 (44745,24411,44689,17657,6609,17703,17092,18430,45346,18900,18279,44866,45229,44640,28313,17335,18185,13922,45286,6875,44767,44836,44878,44685,45051,6862,18446,44687,44848,34194,18301,24412,18172,31354,10402,17904,14622,22509,5259,44764,13988,4765,30963,44851,44765,44837,18648,44853,45517,5388,8753,17492,44873,44768,18688,5993,39676,44869,44867,16935,44863,44861,18650,45421,16885,44671,18719,17839,18572,30986)
Unknown column 'np.person' in 'where clause'