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 (17492,17527,44861,44765,18279,18650,14402,17601,17556,17335,16935,44640,44873,45177,45043,17703,13425,34194,44669,18301,45421,30135,5410,4686,45515,5259,18427,19057,44853,44764,44711,44854,45286,28530,44685,17009,18719,6782,17351,44867,30986,18648,44875,44894,13988,5388,44671,45561,19078,44835,18894,44531,44849,44687,44878,24411,43800,16885,18688,18900,44739,13,17771,44768,44689,18981,14622,45042,44766,17278)
Unknown column 'np.person' in 'where clause'