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 (18650,18042,34194,30986,6609,18648,45180,44856,44873,45421,44870,44674,44775,44835,17492,44768,44869,17527,18353,45516,44687,44669,18185,8753,44863,44851,18279,44849,44848,44711,18301,17848,44837,3883,44767,44855,45229,18237,13922,17771,45042,18981,16935,9341,18286,6875,18894,24412,17657,17009,37267,45286,24411,13,24438,44685,17556,45262,5259,39676,44868,44861,17351,44745,18572,45277,6782,44894,44836,30135)
Unknown column 'np.person' in 'where clause'