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 (18430,45042,44858,5388,44845,44640,3,44689,44685,18652,28530,36472,18648,45177,44687,44861,9341,45516,30986,18279,16885,10402,13425,17981,17756,45286,45518,44849,28313,44762,34194,45561,31354,6782,30963,18794,17601,13922,18900,17009,44739,18572,13,44884,17492,17839,17755,44894,17351,44867,44854,44878,44868,13988,44764,19057,44765,17335,18172,37057,24412,45517,18301,44674,37267,6875,24441,18719,44768,18650)
Unknown column 'np.person' in 'where clause'