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 (17351,10402,44845,18185,44531,24438,18172,18652,44640,18894,44836,45177,17657,6862,3883,14402,44767,17114,44863,44869,18719,45043,13425,44853,17601,30963,17756,4765,18042,17839,17556,44873,22509,44669,17755,44849,44775,5388,45072,44848,44854,44868,16885,44858,44711,45518,18650,44687,28530,18900,17335,44689,5993,18286,45561,30986,44878,30135,18430,16935,18301,43800,18427,9341,17527,17092,44866,44685,37267,13922)
Unknown column 'np.person' in 'where clause'