mercredi 5 octobre 2016

Base table or view not found: 1051 Unknown table - laravel

I want to use select statement but I got this message:

SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'products.title,products_images' (SQL: select `products`.`title,products_images`.* from `products_images` inner join `products` on `products`.`id` = `products_images`.`product_id` where `product_id` = 1)

my query :

 $images = $this->select('products.title,products_images.*')->where('product_id', 1)->join('products', 'products.id', '=', 'products_images.product_id')->get();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire