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 (17237,44766,44865,44866,44863,45229,18185,13988,4765,17839,44873,45567,44867,45516,44884,18996,45286,45517,6875,44745,24411,17848,18900,18794,18894,17981,45561,17351,16935,44671,18353,28313,44739,44669,44711,30963,17755,18446,17601,13425,45043,18172,30986,44878,3883,17657,45518,32454,17527,18719,17335,18279,44868,4686,17092,45042,13,16885,24441,44762,44861,6862,18301,44764,44869,39676,19057,44894,44687,44849)
Unknown column 'np.person' in 'where clause'