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 (45421,10402,6862,18286,44855,44863,14402,44766,17527,17839,17237,45043,18652,45286,44849,30986,17981,17601,44861,44775,17492,44669,45567,5410,45042,19078,44764,44866,31354,19057,18794,24412,44845,18446,30963,28313,5388,17848,37057,44867,16885,44687,18353,17703,17904,3,8753,44869,13922,4765,44671,45262,45515,44739,44767,44856,5993,17351,44768,18279,17278,44836,44853,44745,43800,18172,17009,6609,44835,18301)
Unknown column 'np.person' in 'where clause'