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,43800,45180,30135,24411,18427,18900,44870,44745,45051,6875,3,44531,44674,44739,44765,45286,44764,44685,17756,28313,17009,34194,24438,44762,44848,44767,13425,17114,45421,44766,9341,45277,44768,6609,44878,30986,4765,45346,14402,45518,18279,18981,13988,18185,31354,44869,44837,5388,17351,6862,18648,4686,8753,17904,45517,13,45177,39676,44849,17335,17492,17601,18572,17237,44836,17527,18446,16935,18353)
Unknown column 'np.person' in 'where clause'