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 (44837,18900,5388,45177,44854,3,44835,44531,44765,44687,45286,10402,9341,45229,45072,44878,17601,14622,32454,17981,18648,44855,44711,44867,44866,18894,36472,44865,17771,18185,37057,13425,22509,24438,44870,44685,45042,18572,24441,4686,44858,44868,45051,18279,3883,6782,45518,17904,19078,44853,17009,43800,18650,45180,44671,13922,13988,14402,18430,44863,17703,5993,44856,17527,44848,44762,18237,44836,18446,37267)
Unknown column 'np.person' in 'where clause'