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 (17556,17904,13,44837,30963,17756,45072,44835,28313,45229,44863,28530,18652,18301,24412,24411,17278,44767,17657,17703,44775,44687,17981,30135,44766,18648,44764,13922,31354,44685,44869,37057,44674,44739,13425,5259,18286,6862,5388,44861,39676,6875,32454,18981,18446,44873,45346,17492,44867,14622,44689,24441,16885,44762,18900,5993,8753,19057,36472,44855,17237,45517,44875,44853,9341,45180,45051,44745,17009,24438)
Unknown column 'np.person' in 'where clause'