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,18719,39676,13922,9341,31354,16885,14402,45043,17527,17703,36472,44851,44765,18572,44878,44835,44845,44764,44855,44849,44531,45515,45262,44762,44870,17492,18794,44766,45277,24411,5993,44768,5259,14622,17335,44861,45561,45072,44869,44745,19057,3,18648,44848,17839,44868,5388,44687,30135,45180,44685,4686,44837,44853,5410,44674,44875,45517,13,17351,44689,17904,44640,45346,45042,6609,44854,28313,18042)
Unknown column 'np.person' in 'where clause'