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 (44868,5993,17237,44687,18894,34194,45277,44762,44685,36472,18652,44849,17755,24412,45421,3,44867,18794,44845,17756,14402,18900,44640,45518,17335,45229,44870,24438,45051,30986,45515,5410,44531,18688,45561,18301,44764,18237,17527,44765,24411,45567,17351,18648,17657,13922,18172,44835,44768,6875,45180,14622,44853,6782,44858,44674,44775,8753,45516,18650,18279,3883,44875,44711,44865,31354,45177,24441,10402,18353)
Unknown column 'np.person' in 'where clause'