syntax error joining tables

syntax error joining tables