1. Go to this page and download the library: Download esports/database library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$selection = $context->table('book')
->left(':product_price.active', 1)
->where(':book_tag.tag.name LIKE', 'PHP')
->left(':product_price.value > ?', 0)
->left(':book_tag.tag_id IS NOT NULL')
->select('book.*, :product_price.value');
$selection = $context->table('book')
->left(':product_price.active', 1)
->left(':book_tag.tag_id IS NOT NULL OR :product_price.active IS NOT NULL') // bude pripojeno k book_tag
->select('book.*, :product_price.value');