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,44767,44768,6875,13922,17335,44711,4686,13425,44762,17835,17771,17981,44851,17527,17351,18446,17278,18900,44765,18237,16935,13988,17601,45072,5388,14622,45042,44685,18794,28530,45561,17848,44878,17756,18301,44640,44687,17009,44669,6782,18996,31354,19057,44766,44861,45051,45517,18981,18719,44867,18650,44671,45567,44739,44854,43800,13,18353,18286,17492,18688,14402,44894,17657,44848,44764,9341,17703,17904)
Unknown column 'np.person' in 'where clause'