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 (44884,17278,39676,45051,18301,17755,17835,16935,17848,24412,13922,17839,18572,32454,44762,6875,44845,44669,18279,44775,44870,45229,34194,17092,4686,45421,44894,17335,18430,5410,30963,44687,28530,18353,44685,44837,17009,45286,30135,13425,19078,6609,44766,5388,14622,45177,45072,45346,19057,45517,9341,18648,17556,18688,13,5993,44868,44711,37057,44848,5259,44878,45043,17703,44640,44875,44854,44865,44835,31354)
Unknown column 'np.person' in 'where clause'