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 (19057,44775,4765,9341,18719,45567,18446,18794,44853,17556,28530,45421,24411,44878,30986,45515,18652,44689,44866,45286,13425,43800,10402,44845,44868,18572,45042,45180,18996,24412,44531,18279,30135,17839,18427,17492,45518,19078,44669,18353,18185,44762,37057,17904,4686,5259,3883,44685,44867,44766,44835,36472,17601,14622,44674,17278,44861,17351,45262,5388,3,17092,44865,6875,22509,44739,44848,16935,17756,44870)
Unknown column 'np.person' in 'where clause'