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 (45051,5388,10402,44869,45515,45229,45072,30986,44739,37057,5259,3,45516,17835,44685,17848,18894,44878,44669,24412,13988,24438,6875,18648,18446,44766,45043,44863,39676,44762,45286,44836,44865,44873,45277,17904,44687,17527,17981,44835,45421,45518,44866,17092,44689,14402,6862,18900,44848,44853,45180,18185,3883,44671,16935,18572,28530,44767,44858,18237,28313,17492,17601,44868,17009,44765,13922,5993,45042,45561)
Unknown column 'np.person' in 'where clause'