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 (44685,45286,44878,6609,17492,45177,44765,44854,18688,18042,45229,24412,45262,18996,18794,44866,44640,6782,22509,16885,17009,17755,44766,44531,13425,17771,13,18237,17237,30135,44875,4765,17848,43800,3883,3,45072,45277,13988,24441,18446,45051,44671,44764,24411,44768,8753,44884,44855,37267,45516,5388,6862,16935,30963,17527,18430,28313,17756,45042,17835,44745,44869,17092,44689,44845,44861,32454,10402,44835)
Unknown column 'np.person' in 'where clause'