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 (44531,43800,44849,14622,44875,17756,17601,17009,45277,44745,18719,18185,24412,4686,18446,44711,44687,44845,44878,8753,44669,4765,44765,13,17981,32454,17351,44836,45262,24411,19057,45518,44739,18353,44861,17556,45043,44762,10402,45515,18794,37057,45516,3,13988,18237,6862,18172,44671,44884,44869,44835,17237,45229,17839,44866,6609,44870,44674,13425,44855,45421,18981,44856,44865,44775,16935,44848,17657,44894)
Unknown column 'np.person' in 'where clause'