Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44531,45180,18279,4686,45051,18894,44687,32454,44711,18430,3,13,14402,44767,18981,9341,44858,45177,44674,44835,18572,18648,18794,17755,17556,45043,44855,13922,17092,19078,44764,18446,37057,18427,4765,17114,44671,18353,30963,44685,17657,44762,17335,17703,44765,44867,18900,44869,24411,44854,5410,45229,31354,45042,44836,44875,44848,3883,44849,18301,6875,44894,45262,17835,44861,5993,5259,19057,13988,45286)
Unknown column 'np.person' in 'where clause'