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 (19078,17492,45516,24411,44671,30135,17527,22509,18981,45180,17755,44689,17657,17904,18237,45518,17756,13988,44640,17556,45177,45229,17092,45072,45561,44856,17114,30986,44861,17981,44835,44863,44884,45421,6862,13425,17278,44858,14402,44739,17839,13,44869,18446,34194,14622,44845,45567,44875,4765,3883,18572,44775,43800,24438,16935,18301,18719,17237,44669,5993,44768,17601,44873,45277,44531,28313,17009,44865,45517)
Unknown column 'np.person' in 'where clause'