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 (44867,45346,18981,6875,44762,18996,4765,45561,45262,16935,45180,44863,5410,45043,44854,17335,24412,17657,44868,17848,5259,18900,44856,45515,17771,44858,9341,17351,30135,17835,13922,24411,18427,44875,17601,44765,44767,13,30986,44669,17492,44836,37267,44685,18446,44531,28530,32454,44884,44687,44865,19057,44849,3883,17981,18572,30963,14402,10402,39676,17237,44855,13988,45177,28313,44768,19078,17755,17092,44873)
Unknown column 'np.person' in 'where clause'