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 (18688,18996,44868,31354,18981,18279,14622,44884,17009,44849,44855,18572,37057,18719,44669,18172,16885,17492,30963,44858,18042,22509,44861,45561,44873,44775,17657,34194,5388,44764,19057,44768,5993,45286,10402,44836,18894,32454,45180,45177,44687,44765,17703,36472,24438,44863,18430,17335,28313,44745,5259,18446,17771,39676,44685,44767,18427,45042,45517,44894,44671,18650,30135,4686,44851,30986,44640,44854,13922,17981)
Unknown column 'np.person' in 'where clause'