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 (44873,4765,22509,39676,44837,13988,44836,18650,44671,45346,17835,44869,18894,44835,3883,45043,5993,45515,45567,44875,5259,5388,18996,17601,44739,18286,17771,44762,44851,18185,14622,44745,44894,13922,13,18301,19078,24438,45561,18430,44687,18688,17237,43800,18353,37057,44853,45518,45180,17756,18172,44669,18427,18042,8753,19057,17657,18572,17092,24411,45516,14402,30135,34194,44849,17278,44848,44766,31354,17703)
Unknown column 'np.person' in 'where clause'