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 (16935,45262,18446,5410,16885,44765,17556,4765,44775,13,44671,44837,44851,44764,45051,17009,5388,44894,17839,24438,18900,18894,18430,44853,14622,45229,17527,18652,9341,44875,13988,44858,32454,17657,6609,3883,17335,30986,28530,18286,18172,44861,17278,45517,44687,44856,45072,44863,44767,17351,44873,24412,44739,45180,45421,24411,44845,44640,17771,45042,18042,17755,3,44884,43800,44854,5993,45516,18688,44762)
Unknown column 'np.person' in 'where clause'