Thanks, that works like a charm!
Now i only need to put a filter on it, i want to limit the query to only one vehicle (latest added) because a user can have multiple cars.
i tried the code
PHP Code:
$hook_query_fields .= " , DTO_garage_vehicle.* ";
$hook_query_joins .= " LEFT JOIN DTO_garage_vehicle ON (DTO_garage_vehicle.userid = post.userid) ORDER BY `DTO_garage_vehicle`.`time_added` DESC LIMIT 0,1";
But this code gives me an error, sorry if i'm being noob here, never worked with LEFT JOIN (i only know the simple querys)