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 (4765,17657,17771,18652,44869,45567,30135,24411,44764,45346,18650,44858,28313,17835,3,16935,39676,18042,24412,44671,18794,17556,44531,44687,13922,45515,45229,44866,13,8753,44674,44884,44745,14622,44849,44848,44837,44845,6875,44861,44640,37267,18648,24441,45262,45051,17839,19078,17703,17492,22509,13988,17527,17092,45042,45072,17237,44865,44855,45516,44685,19057,18237,30986,18900,34194,18688,44853,18430,17981)
Unknown column 'np.person' in 'where clause'