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 (6782,17009,45042,44878,8753,44845,44867,24438,34194,44640,13425,28530,4765,17278,44868,17835,19078,44671,5410,44687,44863,44745,18286,45072,18572,17771,31354,16885,3,18650,30963,18900,37267,3883,44775,44854,17703,44764,44848,30986,45277,44835,18648,44689,17492,17904,44865,18042,44674,17657,28313,44894,44884,19057,45561,17556,18981,44767,43800,6862,18279,44869,44861,17756,44685,44765,18894,44531,24411,45229)
Unknown column 'np.person' in 'where clause'