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 (44739,45561,44766,45518,24438,17351,39676,44671,45072,44685,44669,44762,13922,17114,43800,19057,5993,13988,18446,45567,17237,18353,44855,17527,14622,16885,16935,44640,44894,18719,17278,44745,18900,31354,45421,17904,44873,17835,18237,45346,44878,30986,17848,18652,8753,17755,28530,44870,3,4765,17335,17657,44689,24441,5410,17771,6609,45042,45516,44884,44835,44845,44863,18286,44861,18301,18427,14402,45177,18981)
Unknown column 'np.person' in 'where clause'