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 (44689,44865,45180,17492,43800,44739,28313,19057,16885,6875,17657,44878,44856,18042,24441,44854,17556,17351,44868,24438,18279,17237,17839,45262,44775,44894,18286,44869,44711,44640,45286,44884,18648,44671,3883,4765,45072,44836,5410,37057,18427,45518,44858,44765,45421,14622,45277,44669,17092,30963,18446,18237,16935,44835,44837,36472,24411,45517,44687,45229,45043,24412,17114,3,13425,17756,18430,13,17848,5388)
Unknown column 'np.person' in 'where clause'