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 (44671,17114,17335,22509,17755,9341,14622,39676,44866,18652,45561,24441,45518,44863,13,44689,31354,44685,44873,44531,18237,34194,19057,44766,18648,18996,17237,45042,44858,44762,18172,43800,45286,45346,18286,18301,44837,6862,44739,5993,37267,17657,17009,3883,45517,17492,44884,44836,6609,44875,5259,17839,44878,17904,44870,18446,45515,45277,32454,28313,45072,18719,17601,14402,4765,44894,28530,44745,30963,17756)
Unknown column 'np.person' in 'where clause'