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 (14402,18353,17092,3,17009,18286,5259,17835,18301,39676,44875,45072,24441,17351,24412,44836,44858,17839,44689,44674,18719,44765,45518,13922,30135,24438,30986,45516,10402,17527,17237,17335,45051,44775,44845,18430,18446,19057,17657,44863,9341,18279,45042,3883,31354,44739,6862,44855,44867,44894,43800,17755,45180,5993,18648,44837,45277,18427,44687,45286,44853,13,14622,16935,17114,44762,32454,6875,5410,44640)
Unknown column 'np.person' in 'where clause'