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 (44875,34194,44868,45277,18894,17755,44768,44766,45516,17771,5410,18996,32454,44640,17657,45262,30986,44745,45072,17756,44870,3,28313,44835,24412,44866,18794,6875,44851,44685,5259,44765,17839,5993,4686,44687,45561,44853,13988,28530,17351,4765,39676,10402,17601,17278,18353,44884,14402,24441,44531,44764,19078,30135,24438,18650,17114,13922,18301,17904,14622,17556,44865,44837,44836,17703,36472,18648,44762,18572)
Unknown column 'np.person' in 'where clause'