could you check and tell me where i have made a mistake? Here is the code:
$sql = "SELECT prekės.* , CONCAT(vartotojai.name) as v_name
FROM prekės
LEFT JOIN vartotojai
ON vartotojai.V_ID=prekės.V_ID
ORDER BY prekės.date
LIMIT $offset, $rec_limit
WHERE prekės.category='Telefonai'";
The error comes from the last line with WHERE clause.
select from join where order limit