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 (24438,6875,44640,5410,24411,17839,16935,6609,45516,44873,44837,44835,44669,39676,18279,44531,17092,44765,18185,18648,44884,18572,45229,44858,18652,44863,13,43800,17278,18353,44674,17755,18446,44762,45515,8753,30135,37267,17835,17237,44766,17848,18996,44853,44836,19078,45277,44671,18650,17657,44845,3,24412,5993,44855,17556,45567,45561,44711,5388,3883,44687,10402,44775,18894,45421,44848,18900,30963,17492)
Unknown column 'np.person' in 'where clause'