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 (5388,44685,13,44853,44739,18652,44861,44640,18430,18286,6609,44845,5410,44863,13425,44894,10402,45180,24441,18572,44775,6875,45516,45561,45229,45042,31354,17009,44766,13988,44873,32454,17756,5993,18794,18894,44671,18648,17848,45567,37267,14402,45421,17527,44762,18185,44837,24411,17601,19078,17556,44531,45517,44835,17904,9341,18301,17278,45515,17835,44869,17703,44865,18996,24438,14622,18427,18446,17237,17114)
Unknown column 'np.person' in 'where clause'